Commit 73dec82d authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Al writes:
  "xattrs regression fix from Andreas; sat in -next for quite a while."

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  sysfs: Do not return POSIX ACL xattrs via listxattr
parents 1d2ba7fe ffc4c922
...@@ -948,17 +948,19 @@ ssize_t simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs, ...@@ -948,17 +948,19 @@ ssize_t simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs,
int err = 0; int err = 0;
#ifdef CONFIG_FS_POSIX_ACL #ifdef CONFIG_FS_POSIX_ACL
if (inode->i_acl) { if (IS_POSIXACL(inode)) {
err = xattr_list_one(&buffer, &remaining_size, if (inode->i_acl) {
XATTR_NAME_POSIX_ACL_ACCESS); err = xattr_list_one(&buffer, &remaining_size,
if (err) XATTR_NAME_POSIX_ACL_ACCESS);
return err; if (err)
} return err;
if (inode->i_default_acl) { }
err = xattr_list_one(&buffer, &remaining_size, if (inode->i_default_acl) {
XATTR_NAME_POSIX_ACL_DEFAULT); err = xattr_list_one(&buffer, &remaining_size,
if (err) XATTR_NAME_POSIX_ACL_DEFAULT);
return err; if (err)
return err;
}
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment