linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* setcifsacl: Shouldn't 0x0 be a valid mask?
@ 2021-09-23 15:55 Bruno Wolff III
  2021-09-23 16:15 ` Steve French
  0 siblings, 1 reply; 6+ messages in thread
From: Bruno Wolff III @ 2021-09-23 15:55 UTC (permalink / raw)
  To: linux-cifs

I was looking at using S-1-2-3-4 to take away rights via ownership and 
granting no access (but not denying it either) makes sense as access 
is granted via group membership. Microsofts documentation seems to 
suggest the a 0x0 mask is valid.
Quote from 
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd125370(v=ws.10)?redirectedfrom=MSDN
"When you add the Owner Rights security principal to objects, you can 
specify what permissions are given to the owner of an object. For example 
you can specify in the access control entry (ACE) of an object that the 
owner of a particular object is given Read permissions or you can specify 
NULL permissions to an object, which grants the owner of the object no 
permissions."

Here is example output:
# setcifsacl -a "ACL:S-1-2-3-4:0x0/0x0/0x0" bruno-test
verify_ace_mask: Invalid mask 0x0 (value 0x0)

Besides the owner rights case, I think this might also make sense in an ACL 
to break inheritence, though in that case there might be other ways to 
do that.

Unless having a 0x0 mask actually breaks things, it doesn't seem that 
it is a good idea to prohibit it.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-23 21:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23 15:55 setcifsacl: Shouldn't 0x0 be a valid mask? Bruno Wolff III
2021-09-23 16:15 ` Steve French
2021-09-23 16:10   ` Bruno Wolff III
2021-09-23 16:35   ` Bruno Wolff III
2021-09-23 19:38   ` Bruno Wolff III
     [not found]     ` <CAH2r5msf525KHBUTgiTMFwzm=Wk_0vGeHuWFia1ijBETSvG4Ew@mail.gmail.com>
2021-09-23 20:48       ` Bruno Wolff III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).