summaryrefslogtreecommitdiffstats
path: root/fs/kernfs
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2015-12-02 14:44:39 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2015-12-06 21:34:15 -0500
commit786534b92f3ce68f4afc8a761c80b76887797b0a (patch)
tree569a3d59a37cae008a4c86e9e78c4aa7b5a4e2c2 /fs/kernfs
parentaa7c5241c380adb7e6913549292c1b83c1469bda (diff)
downloadop-kernel-dev-786534b92f3ce68f4afc8a761c80b76887797b0a.zip
op-kernel-dev-786534b92f3ce68f4afc8a761c80b76887797b0a.tar.gz
tmpfs: listxattr should include POSIX ACL xattrs
When a file on tmpfs has an ACL or a Default ACL, listxattr should include the corresponding xattr name. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: James Morris <james.l.morris@oracle.com> Cc: Hugh Dickins <hughd@google.com> Cc: linux-mm@kvack.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/kernfs')
-rw-r--r--fs/kernfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/kernfs/inode.c b/fs/kernfs/inode.c
index f97e1f7..16405ae 100644
--- a/fs/kernfs/inode.c
+++ b/fs/kernfs/inode.c
@@ -230,7 +230,7 @@ ssize_t kernfs_iop_listxattr(struct dentry *dentry, char *buf, size_t size)
if (!attrs)
return -ENOMEM;
- return simple_xattr_list(&attrs->xattrs, buf, size);
+ return simple_xattr_list(d_inode(dentry), &attrs->xattrs, buf, size);
}
static inline void set_default_inode_attr(struct inode *inode, umode_t mode)
OpenPOWER on IntegriCloud