diff options
author | Steve French <stfrench@microsoft.com> | 2020-10-20 09:02:02 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-10-20 18:51:24 +0200 |
commit | 9934430e2178d5164eb1ac91a9b092f9e7e64745 (patch) | |
tree | 27b267463591d6f552b00d5e931bd1a1529be700 /fs/cifs/cifsproto.h | |
parent | smb3: add dynamic trace point to trace when credits obtained (diff) | |
download | linux-9934430e2178d5164eb1ac91a9b092f9e7e64745.tar.xz linux-9934430e2178d5164eb1ac91a9b092f9e7e64745.zip |
SMB3.1.1: Fix ids returned in POSIX query dir
We were setting the uid/gid to the default in each dir entry
in the parsing of the POSIX query dir response, rather
than attempting to map the user and group SIDs returned by
the server to well known SIDs (or upcall if not found).
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index bb68cbf81074..24c6f36177ba 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -209,6 +209,8 @@ extern int cifs_set_file_info(struct inode *inode, struct iattr *attrs, extern int cifs_rename_pending_delete(const char *full_path, struct dentry *dentry, const unsigned int xid); +extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, + struct cifs_fattr *fattr, uint sidtype); extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, struct inode *inode, bool get_mode_from_special_sid, |