cifs: allow chmod to set mode bits using special sid
authorSteve French <stfrench@microsoft.com>
Fri, 19 Jul 2019 08:15:55 +0000 (08:15 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 16 Sep 2019 16:43:37 +0000 (11:43 -0500)
commit22442179a5bb8c62c978cdb686cfb3a8f6d110d8
tree514b8a191364f6537e755a9964ac90a777a9506a
parente2f8fbfb8d09c06decde162090fac3ee220aa280
cifs: allow chmod to set mode bits using special sid

    When mounting with "modefromsid" set mode bits (chmod) by
    adding ACE with special SID (S-1-5-88-3-<mode>) to the ACL.
    Subsequent patch will fix setting default mode on file
    create and mkdir.

    See See e.g.
        https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/hh509017(v=ws.10)

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsacl.c
fs/cifs/inode.c