Steve French b1d9335642 setfacl removes part of ACL when setting POSIX ACLs to Samba
setfacl over cifs mounts can remove the default ACL when setting the
(non-default part of) the ACL and vice versa (we were leaving at 0
rather than setting to -1 the count field for the unaffected
half of the ACL.  For example notice the setfacl removed
the default ACL in this sequence:

steven@steven-GA-970A-DS3:~/cifs-2.6$ getfacl /mnt/test-dir ; setfacl
-m default:user:test:rwx,user:test:rwx /mnt/test-dir
getfacl: Removing leading '/' from absolute path names
user::rwx
group::r-x
other::r-x
default:user::rwx
default:user:test:rwx
default:group::r-x
default😷:rwx
default:other::r-x

steven@steven-GA-970A-DS3:~/cifs-2.6$ getfacl /mnt/test-dir
getfacl: Removing leading '/' from absolute path names
user::rwx
user:test:rwx
group::r-x
mask::rwx
other::r-x

CC: Stable <stable@kernel.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Acked-by: Jeremy Allison <jra@samba.org>
2013-11-15 20:50:58 -06:00
..
2013-09-25 19:01:27 -05:00
2013-11-15 15:27:22 -06:00
2013-11-08 05:57:46 +09:00
2013-11-11 16:31:03 -06:00
2013-06-26 23:45:05 -05:00
2013-09-08 14:27:34 -05:00
2013-11-11 16:31:03 -06:00
2007-06-05 18:30:44 +00:00
2013-11-11 16:31:03 -06:00
2013-06-26 23:45:05 -05:00
2013-11-11 16:31:03 -06:00
2013-11-15 15:27:22 -06:00
2013-11-11 16:31:03 -06:00
2012-07-24 10:25:13 -05:00
2013-09-08 14:54:24 -05:00