diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2024-08-05 08:56:18 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-08-08 22:54:09 -0500 |
commit | a018c1b636e79b60149b41151ded7c2606d8606e (patch) | |
tree | f6834cf6b5b0fa2306035dc8533119981c1191d4 /fs/smb/server/smb_common.h | |
parent | 8400291e289ee6b2bf9779ff1c83a291501f017b (diff) |
ksmbd: override fsids for share path check
Sangsoo reported that a DAC denial error occurred when accessing
files through the ksmbd thread. This patch override fsids for share
path check.
Reported-by: Sangsoo Lee <constant.lee@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/server/smb_common.h')
-rw-r--r-- | fs/smb/server/smb_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/server/smb_common.h b/fs/smb/server/smb_common.h index f1092519c0c2..4a3148b0167f 100644 --- a/fs/smb/server/smb_common.h +++ b/fs/smb/server/smb_common.h @@ -447,6 +447,8 @@ int ksmbd_extract_shortname(struct ksmbd_conn *conn, int ksmbd_smb_negotiate_common(struct ksmbd_work *work, unsigned int command); int ksmbd_smb_check_shared_mode(struct file *filp, struct ksmbd_file *curr_fp); +int __ksmbd_override_fsids(struct ksmbd_work *work, + struct ksmbd_share_config *share); int ksmbd_override_fsids(struct ksmbd_work *work); void ksmbd_revert_fsids(struct ksmbd_work *work); |