diff options
| author | Ian Bridges <icb@fastmail.org> | 2026-11-09 20:33:44 -0600 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-11-10 23:56:21 +0900 |
| commit | b0af9a3e6b1534d353ca6ac23caaf46127f62e4a (patch) | |
| tree | 5e6c0541ef8ffa5b3a517a05acd5216d58ea4c05 /scripts/Makefile.thinlto | |
| parent | 265709f9dc271693d1a261a62242db652fcc471d (diff) | |
| download | lwn-b0af9a3e6b1534d353ca6ac23caaf46127f62e4a.tar.gz lwn-b0af9a3e6b1534d353ca6ac23caaf46127f62e4a.zip | |
ksmbd: keep group denials when a POSIX ACL entry decides access
When no ACE names the caller, Everyone or Authenticated Users,
smb_check_perm_dacl() lets a POSIX ACL entry for the caller decide
access. The entry's rights replace the result of the DACL walk. Deny
ACEs for the caller's groups, and OWNER RIGHTS for the owner, are then
lost.
For example, a deny of FILE_WRITE_DATA for one of the caller's groups
should refuse writes. A POSIX ACL entry that gives the caller write
access still lets the caller write.
Remove the requested rights that those ACEs deny from the entry's
rights. The DACL walk already records them in grp_denied.
Fixes: 42ac1f1917ae ("ksmbd: grant a caller what its groups and OWNER RIGHTS ACEs allow")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20261102200353.884509-1-icb%40fastmail.org
Link: https://sashiko.dev/#/patchset/20261103150458.11591-1-icb%40fastmail.org
Link: https://sashiko.dev/#/patchset/20261107062233.1579198-1-icb%40fastmail.org?part=1
Link: https://sashiko.dev/#/patchset/20261107231941.1824289-1-icb%40fastmail.org?part=1
Link: https://sashiko.dev/#/patchset/20261108182011.1888520-1-icb%40fastmail.org?part=1
Cc: stable@vger.kernel.org
Signed-off-by: Ian Bridges <icb@fastmail.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
