diff options
author | Boris Protopopov <pboris@amazon.com> | 2020-12-17 20:58:08 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-12-18 23:32:04 -0600 |
commit | 9541b81322e60120b299222919957becd7a13683 (patch) | |
tree | e8f685b2da9e36c575780539ca5381e931e6290b /fs/cifs/smb2pdu.c | |
parent | 3970acf7ddb9aa01c4bdeef197495157c98a15f6 (diff) | |
download | linux-9541b81322e60120b299222919957becd7a13683.tar.bz2 |
Add SMB 2 support for getting and setting SACLs
Fix passing of the additional security info via version
operations. Force new open when getting SACL and avoid
reuse of files that were previously open without
sufficient privileges to access SACLs.
Signed-off-by: Boris Protopopov <pboris@amazon.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 202d8742d149..067eb44c7baa 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3480,8 +3480,10 @@ 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, u32 additional_info) + void **data, u32 *plen, u32 extra_info) { + __u32 additional_info = OWNER_SECINFO | GROUP_SECINFO | DACL_SECINFO | + extra_info; *plen = 0; return query_info(xid, tcon, persistent_fid, volatile_fid, |