Skip to content
  • Eric Biggers's avatar
    3ad2522c
    statx: define STATX_ATTR_VERITY · 3ad2522c
    Eric Biggers authored
    
    
    Add a statx attribute bit STATX_ATTR_VERITY which will be set if the
    file has fs-verity enabled.  This is the statx() equivalent of
    FS_VERITY_FL which is returned by FS_IOC_GETFLAGS.
    
    This is useful because it allows applications to check whether a file is
    a verity file without opening it.  Opening a verity file can be
    expensive because the fsverity_info is set up on open, which involves
    parsing metadata and optionally verifying a cryptographic signature.
    
    This is analogous to how various other bits are exposed through both
    FS_IOC_GETFLAGS and statx(), e.g. the encrypt bit.
    
    Reviewed-by: default avatarAndreas Dilger <adilger@dilger.ca>
    Acked-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
    3ad2522c
    statx: define STATX_ATTR_VERITY
    Eric Biggers authored
    
    
    Add a statx attribute bit STATX_ATTR_VERITY which will be set if the
    file has fs-verity enabled.  This is the statx() equivalent of
    FS_VERITY_FL which is returned by FS_IOC_GETFLAGS.
    
    This is useful because it allows applications to check whether a file is
    a verity file without opening it.  Opening a verity file can be
    expensive because the fsverity_info is set up on open, which involves
    parsing metadata and optionally verifying a cryptographic signature.
    
    This is analogous to how various other bits are exposed through both
    FS_IOC_GETFLAGS and statx(), e.g. the encrypt bit.
    
    Reviewed-by: default avatarAndreas Dilger <adilger@dilger.ca>
    Acked-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Loading