diff options
author | Boris Protopopov <pboris@amazon.com> | 2020-12-18 11:30:12 -0600 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-12-18 13:25:57 -0600 |
commit | 3970acf7ddb9aa01c4bdeef197495157c98a15f6 (patch) | |
tree | 9a3cbc47f7e7db89ac60c3e39df67a74954b87ad /fs/cifs/smb2pdu.c | |
parent | 0bf1bafb17df03fbd0e8b9a086c39e6f24af7193 (diff) | |
download | linux-3970acf7ddb9aa01c4bdeef197495157c98a15f6.tar.bz2 |
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>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index fc06c762fbbf..202d8742d149 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3479,10 +3479,9 @@ SMB311_posix_query_info(const unsigned int xid, struct cifs_tcon *tcon, int SMB2_query_acl(const unsigned int xid, struct cifs_tcon *tcon, - u64 persistent_fid, u64 volatile_fid, - void **data, u32 *plen) + u64 persistent_fid, u64 volatile_fid, + void **data, u32 *plen, u32 additional_info) { - __u32 additional_info = OWNER_SECINFO | GROUP_SECINFO | DACL_SECINFO; *plen = 0; return query_info(xid, tcon, persistent_fid, volatile_fid, |