diff options
author | Ned Bass <[email protected]> | 2016-04-15 18:55:03 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-04-18 11:26:55 -0700 |
commit | 98f03691a4c08f38ca4538c468e9523f8e6b24be (patch) | |
tree | a1d0d5d4d694bd0d45a371739b3bf8fd5e41dbdf /module/zfs/zpl_xattr.c | |
parent | 4903926f892ee10ead9571334efd43e80347b6f1 (diff) |
Fix ZPL miswrite of default POSIX ACL
Commit 4967a3e introduced a typo that caused the ZPL to store the
intended default ACL as an access ACL. Due to caching this problem
may not become visible until the filesystem is remounted or the inode
is evicted from the cache. Fix the typo and add a regression test.
Signed-off-by: Ned Bass <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes #4520
Diffstat (limited to 'module/zfs/zpl_xattr.c')
-rw-r--r-- | module/zfs/zpl_xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zpl_xattr.c b/module/zfs/zpl_xattr.c index 6a1acd7f4..420091953 100644 --- a/module/zfs/zpl_xattr.c +++ b/module/zfs/zpl_xattr.c @@ -969,7 +969,7 @@ zpl_set_acl(struct inode *ip, int type, struct posix_acl *acl) break; case ACL_TYPE_DEFAULT: - name = XATTR_NAME_POSIX_ACL_ACCESS; + name = XATTR_NAME_POSIX_ACL_DEFAULT; if (!S_ISDIR(ip->i_mode)) return (acl ? -EACCES : 0); break; |