diff options
author | 2024-08-05 08:56:18 +0900 | |
---|---|---|
committer | 2024-08-08 22:54:09 -0500 | |
commit | a018c1b636e79b60149b41151ded7c2606d8606e (patch) | |
tree | f6834cf6b5b0fa2306035dc8533119981c1191d4 /fs/smb/server/smb_common.h | |
parent | Linux 6.11-rc1 (diff) | |
download | wireguard-linux-a018c1b636e79b60149b41151ded7c2606d8606e.tar.xz wireguard-linux-a018c1b636e79b60149b41151ded7c2606d8606e.zip |
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 '')
-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); |