diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-07-05 15:43:29 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 15:00:29 +0900 |
| commit | 497dbc5999a52efd55e079589b166e5c18a20fe3 (patch) | |
| tree | 92eaa6af6e7abb4e66438a751c7157951473f107 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 5d47ebb2795d0dab7bf718ae6665ffdaa7bb880c (diff) | |
ksmbd: reject delete-on-close for read-only files
DELETE_ON_CLOSE is currently accepted for files carrying the read-only
DOS attribute. The server consequently creates or opens the file and
marks it for deletion instead of returning STATUS_CANNOT_DELETE.
Reject creation of a new read-only file with DELETE_ON_CLOSE. For an
existing file, load the stored DOS attributes before accepting the
create option. Also reject FileDispositionInformation when the opened
file has the read-only attribute.
Preserve the explicit STATUS_CANNOT_DELETE value while unwinding the
CREATE request.
This fixes smb2.delete-on-close-perms.READONLY.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
