]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: Check for the IOP_XATTR flag in listxattr
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 29 Sep 2016 15:48:43 +0000 (17:48 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 8 Oct 2016 00:10:44 +0000 (20:10 -0400)
commitb3874cd7385f158eae27ce4270bd4fd458141cd2
treefc1acb8831c47a2e94f6182feaca33ac0d31fe45
parentcc1fc0c2c25f7385f73d025bb307e4e58ba7261a
vfs: Check for the IOP_XATTR flag in listxattr

When an inode doesn't support xattrs, turn listxattr off as well.

(When xattrs are "turned off", the VFS still passes security xattr
operations through to security modules, which can still expose inode
security labels that way.)

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/xattr.c