SMB3: Add support for getting and setting SACLs
authorBoris Protopopov <pboris@amazon.com>
Fri, 18 Dec 2020 17:30:12 +0000 (11:30 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 18 Dec 2020 19:25:57 +0000 (13:25 -0600)
commit3970acf7ddb9aa01c4bdeef197495157c98a15f6
tree9a3cbc47f7e7db89ac60c3e39df67a74954b87ad
parent0bf1bafb17df03fbd0e8b9a086c39e6f24af7193
SMB3: Add support for getting and setting SACLs

Add SYSTEM_SECURITY access flag and use with smb2 when opening
files for getting/setting SACLs. Add "system.cifs_ntsd_full"
extended attribute to allow user-space access to the functionality.
Avoid multiple server calls when setting owner, DACL, and SACL.

Signed-off-by: Boris Protopopov <pboris@amazon.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsacl.c
fs/cifs/cifsglob.h
fs/cifs/cifspdu.h
fs/cifs/cifsproto.h
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/smb2proto.h
fs/cifs/xattr.c