From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Allison Subject: Re: posix remove acl support Date: Wed, 20 Nov 2013 21:16:00 -0800 Message-ID: <20131121051600.GA1007@jeremy-HP> References: Reply-To: Jeremy Allison Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jeremy Allison , "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 Wed, Nov 20, 2013 at 11:04:57PM -0600, Steve French wrote: > Jeremy, > As you noted we need to add support to cifs kernel client to remove POSIX ACLs. > > This patch is close (it seems to work, but wireshark did not like the > buffer lengths when I did a setfacl -k although setacl -b looked fine. > > It works basically by passing the minimum size in for the ACL (0 > entries) - sending a zero in the number of ACEs removes the entry. > > Comments/feedback? Yep, sending a zero size for the number of ACE entries will delete the ACL on the Samba server side. I don't have the capability to test your patch right now though, but you should be able to test it against any modern Samba server installation. Jeremy.