diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-07-11 23:54:43 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 15:00:43 +0900 |
| commit | 3c707d4b3f926fc9b7b13b5bfe71462cb0e0e5d8 (patch) | |
| tree | fab91fb5f706c66dd7c1a481564ebc39fa72a481 /tools/perf/scripts/python | |
| parent | 350684e0498512d06963858b810101f58563810b (diff) | |
ksmbd: fix permission checks for file allocation ioctls
FSCTL_SET_SPARSE should not require FILE_WRITE_ATTRIBUTES only. A handle
with FILE_WRITE_DATA or FILE_APPEND_DATA is also allowed to set the file
allocation state, while FILE_WRITE_EA alone must still be rejected.
FSCTL_QUERY_ALLOCATED_RANGES needs FILE_READ_DATA access. Reject handles
that only have metadata access such as FILE_READ_ATTRIBUTES.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
