]> git.proxmox.com Git - pve-kernel-jessie.git/blob - zfs-fix-default-acl.patch
bump version to 4.4.8-52
[pve-kernel-jessie.git] / zfs-fix-default-acl.patch
1 From 98f03691a4c08f38ca4538c468e9523f8e6b24be Mon Sep 17 00:00:00 2001
2 From: Ned Bass <bass6@llnl.gov>
3 Date: Fri, 15 Apr 2016 18:55:03 +0000
4 Subject: [PATCH] Fix ZPL miswrite of default POSIX ACL
5
6 Commit 4967a3e introduced a typo that caused the ZPL to store the
7 intended default ACL as an access ACL. Due to caching this problem
8 may not become visible until the filesystem is remounted or the inode
9 is evicted from the cache. Fix the typo and add a regression test.
10
11 Signed-off-by: Ned Bass <bass6@llnl.gov>
12 Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
13 Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
14 Closes #4520
15
16 Removed test-related changes (not included in our sources).
17 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
18 ---
19 module/zfs/zpl_xattr.c | 2 +-
20 1 files changed, 1 insertions(+), 1 deletions(-)
21
22 diff --git a/module/zfs/zpl_xattr.c b/module/zfs/zpl_xattr.c
23 index 6a1acd7..4200919 100644
24 --- a/module/zfs/zpl_xattr.c
25 +++ b/module/zfs/zpl_xattr.c
26 @@ -969,7 +969,7 @@ zpl_set_acl(struct inode *ip, int type, struct posix_acl *acl)
27 break;
28
29 case ACL_TYPE_DEFAULT:
30 - name = XATTR_NAME_POSIX_ACL_ACCESS;
31 + name = XATTR_NAME_POSIX_ACL_DEFAULT;
32 if (!S_ISDIR(ip->i_mode))
33 return (acl ? -EACCES : 0);
34 break;