]> git.baikalelectronics.ru Git - kernel.git/commit
fs: uapi: define verity bit for FS_IOC_GETFLAGS
authorEric Biggers <ebiggers@google.com>
Mon, 22 Jul 2019 16:26:21 +0000 (09:26 -0700)
committerEric Biggers <ebiggers@google.com>
Sun, 28 Jul 2019 23:59:16 +0000 (16:59 -0700)
commit1a25f817e962960e6b261666eb160fe8a9abacd5
tree5c27d2c4b02bc40169e52bddbbc0e75792e0e585
parent5600ab6aac9310893068348e044efd4b1ff54bb5
fs: uapi: define verity bit for FS_IOC_GETFLAGS

Add FS_VERITY_FL to the flags for FS_IOC_GETFLAGS, so that applications
can easily determine whether a file is a verity file at the same time as
they're checking other file flags.  This flag will be gettable only;
FS_IOC_SETFLAGS won't allow setting it, since an ioctl must be used
instead to provide more parameters.

This flag matches the on-disk bit that was already allocated for ext4.

Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
include/uapi/linux/fs.h