From 4b908d32200b6e5c7b5115322b6c8d25e770daa0 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 2 Aug 2016 11:11:45 -0700 Subject: Linux 4.8 compat: posix_acl_valid() The posix_acl_valid() function has been updated to require a user namespace. Filesystem callers should normally provide the user_ns from the super block associcated with the ACL; the zpl_posix_acl_valid() wrapper has been added for this purpose. See https://github.com/torvalds/linux/commit/0d4d717f for complete details. Signed-off-by: Brian Behlendorf Signed-off-by: Nikolay Borisov Signed-off-by: Chunwei Chen Closes #4922 --- module/zfs/zpl_xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module') diff --git a/module/zfs/zpl_xattr.c b/module/zfs/zpl_xattr.c index 6dab895e0..ab81dd2d0 100644 --- a/module/zfs/zpl_xattr.c +++ b/module/zfs/zpl_xattr.c @@ -1288,7 +1288,7 @@ __zpl_xattr_acl_set_access(struct inode *ip, const char *name, if (IS_ERR(acl)) return (PTR_ERR(acl)); else if (acl) { - error = posix_acl_valid(acl); + error = zpl_posix_acl_valid(ip, acl); if (error) { zpl_posix_acl_release(acl); return (error); @@ -1328,7 +1328,7 @@ __zpl_xattr_acl_set_default(struct inode *ip, const char *name, if (IS_ERR(acl)) return (PTR_ERR(acl)); else if (acl) { - error = posix_acl_valid(acl); + error = zpl_posix_acl_valid(ip, acl); if (error) { zpl_posix_acl_release(acl); return (error); -- cgit v1.2.3