diff options
| author | Ian Bridges <icb@fastmail.org> | 2026-11-04 12:58:04 -0600 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-11-08 12:48:56 +0900 |
| commit | 42ac1f1917ae678ee2c47f415ab844af03bbd46b (patch) | |
| tree | 67826dfe26b50e271b36f245aba1d8b7a4c6f921 /rust/kernel/alloc | |
| parent | fa4ad798f6f681031775266044ba1b0cf3c670bd (diff) | |
ksmbd: grant a caller what its groups and OWNER RIGHTS ACEs allow
smb_check_perm_dacl() does not match ACEs for the caller's Unix
groups and refuses an owner named only by OWNER RIGHTS. These callers
cannot use rights the DACL grants them under MS-DTYP 2.5.3.2.
Match Unix group SIDs (S-1-22-2) against the caller's credentials. Use
the ordered DACL result when the existing SID lookup and POSIX ACL
fallback do not decide access. In that result, deny ACEs for the
caller's groups limit what it grants, also for MAXIMUM_ALLOWED. Count
only the exact OWNER RIGHTS SID in that result, since compare_sids()
also matches shorter and longer SIDs, and return only file access
rights. Preserve the refusal for non-inherit-only object deny ACEs,
which ksmbd does not parse.
MAXIMUM_ALLOWED still excludes group allow ACEs. Including them
requires corresponding changes in smb2_open() to avoid breaking
existing opens. An open relying on group grants can therefore still
fail when it requests a maximal access reply. For the owner, that
reply leaves out the rights of its groups.
Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Cc: stable@vger.kernel.org
Signed-off-by: Ian Bridges <icb@fastmail.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
