diff options
| author | Michail Andreas Michalopoulos <mike.michalo@gmail.com> | 2026-10-20 21:03:51 +0200 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-21 10:14:54 +0900 |
| commit | 8323aab48525b83f750e712f66e6e9387b550cf4 (patch) | |
| tree | 012170473305eeba80f8768929abb133a6e412aa /scripts/Makefile.thinlto | |
| parent | de0cffef897c1c232ed973f89928cd6c93d0b1e3 (diff) | |
| download | linux-8323aab48525b83f750e712f66e6e9387b550cf4.tar.gz linux-8323aab48525b83f750e712f66e6e9387b550cf4.zip | |
ksmbd: reject FILE_ATTRIBUTE_TEMPORARY on directories
Setting FILE_ATTRIBUTE_TEMPORARY on a directory with SMB2 SET_INFO
(FileBasicInformation) succeeds: ksmbd keeps the attribute and, with
"store dos attributes" enabled, also writes it to the DOS attribute
xattr.
MS-FSA (FileBasicInformation) says the request must fail with
STATUS_INVALID_PARAMETER when FILE_ATTRIBUTE_TEMPORARY is set on a
directory, and Samba rejects it too. smbtorture's
smb2.create.dosattr_tmp_dir checks this and fails against ksmbd.
Return -EINVAL, which is sent as STATUS_INVALID_PARAMETER, when a
directory is asked to become TEMPORARY. Do the check before any
timestamp is changed, so a rejected request leaves the open file and
the inode unchanged.
Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Assisted-by: LLM
Signed-off-by: Michail Andreas Michalopoulos <mike.michalo@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
