From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Allison Subject: Re: setfacl fix Date: Fri, 15 Nov 2013 20:55:22 -0800 Message-ID: <20131116045522.GA4399@jeremy-HP> References: Reply-To: Jeremy Allison Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , samba-technical To: Steve French Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Fri, Nov 15, 2013 at 08:53:12PM -0600, Steve French wrote: > From: Steve French > Date: Fri, 15 Nov 2013 20:41:32 -0600 > Subject: [PATCH] [CIFS] 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: Looks good to me. Removing the default acl when the number of ACE entries is set to zero is by design in the Samba server, to allow setfacl -k to work (remove the default ACL). Jeremy.