]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: use generic vfs_ioc_setflags_prepare() helper
authorAmir Goldstein <amir73il@gmail.com>
Tue, 29 Sep 2020 07:28:48 +0000 (15:28 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 6 Oct 2020 13:38:15 +0000 (15:38 +0200)
commitba0c29598d67d7e364eaadfdc8bc46101fffaa6d
tree46ca211e654e6bb65b9a8bf7f99c9126fd8ba4f9
parenta3e6c4e41f94b5afaf36f3ad2205cfbce49293fb
ovl: use generic vfs_ioc_setflags_prepare() helper

Canonalize to ioctl FS_* flags instead of inode S_* flags.

Note that we do not call the helper vfs_ioc_fssetxattr_check()
for FS_IOC_FSSETXATTR ioctl. The reason is that underlying filesystem
will perform all the checks. We only need to perform the capability
check before overriding credentials.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/file.c