]> git.baikalelectronics.ru Git - kernel.git/commit
xattr: Add __vfs_{get,set,remove}xattr helpers
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 29 Sep 2016 15:48:42 +0000 (17:48 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 8 Oct 2016 00:10:44 +0000 (20:10 -0400)
commit2909f2103bd8d166d0a77f0e6f3ec976a5fe22ed
treea28f96e71f09da2fbbde50882d56e5d5657c0ede
parenta4acc3587775082a339de45b18fc2c6df2eb4a70
xattr: Add __vfs_{get,set,remove}xattr helpers

Right now, various places in the kernel check for the existence of
getxattr, setxattr, and removexattr inode operations and directly call
those operations.  Switch to helper functions and test for the IOP_XATTR
flag instead.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
14 files changed:
fs/cachefiles/bind.c
fs/cachefiles/namei.c
fs/ecryptfs/inode.c
fs/ecryptfs/mmap.c
fs/overlayfs/copy_up.c
fs/overlayfs/super.c
fs/xattr.c
include/linux/xattr.h
security/commoncap.c
security/integrity/evm/evm_crypto.c
security/integrity/evm/evm_main.c
security/integrity/ima/ima_appraise.c
security/selinux/hooks.c
security/smack/smack_lsm.c