From: Ian Bridges <icb@fastmail.org>
To: Namjae Jeon <linkinjeon@kernel.org>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>,
Tom Talpey <tom@talpey.com>,
ChenXiaoSong <chenxiaosong@chenxiaosong.com>,
linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org,
Aamir Ahmed <elb12345@hotmail.co.uk>,
stable@vger.kernel.org, Ian Bridges <icb@fastmail.org>
Subject: Re: [PATCH 2/2] ksmbd: grant a caller what its groups and OWNER RIGHTS ACEs allow
Date: Mon, 2 Nov 2026 13:55:59 -0600 [thread overview]
Message-ID: <20261102195559.883967-1-icb@fastmail.org> (raw)
In-Reply-To: <CAKYAXd9Om3RcrgxAKbQZGT2Lxs7XSktm2bhLTUEJB96Oc0-iZg@mail.gmail.com>
Hi Namjae,
Sashiko is right about access_bits. In v1, an explicit request could
gain rights from the ordered walk when the selected ACE had a type
the lookup does not handle. I've prepared v2, which clears access_bits
after that walk for explicit requests.
The other three findings describe limitations that also exist before
this patch.
For FILE_EXECUTE, the reported OWNER RIGHTS ACE grants generic read
without execute. MAXIMUM_ALLOWED|GENERIC_EXECUTE is refused before
and after the patch. The execute adjustment is not included in the
new OWNER RIGHTS-only path. A probe confirms this.
For Everyone and Authenticated Users, the existing lookup still lets
one of those ACEs decide the explicit request when no ACE names the
caller's own SID. Group and OWNER RIGHTS ACEs are ignored in that
case. This patch changes only requests that the lookup and POSIX ACL
fallback would otherwise refuse.
For the maximal access context, a non-owner relying solely on group
grants still fails the MAXIMUM_ALLOWED check. An explicit open can
therefore succeed without MxAc and fail with it. The probe confirms
this, and the v2 message now documents it. Counting groups in
MAXIMUM_ALLOWED also needs changes in smb2_open().
Thanks,
Ian
prev parent reply other threads:[~2026-11-02 19:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 6:15 [PATCH 0/2] ksmbd: fix DACL checks for owners and groups Ian Bridges
2026-11-02 6:15 ` [PATCH 1/2] ksmbd: let the owner read and change the DACL when no ACE names it Ian Bridges
2026-11-02 9:25 ` Namjae Jeon
2026-11-02 6:15 ` [PATCH 2/2] ksmbd: grant a caller what its groups and OWNER RIGHTS ACEs allow Ian Bridges
2026-11-02 9:15 ` Namjae Jeon
2026-11-02 19:55 ` Ian Bridges [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261102195559.883967-1-icb@fastmail.org \
--to=icb@fastmail.org \
--cc=chenxiaosong@chenxiaosong.com \
--cc=elb12345@hotmail.co.uk \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=senozhatsky@chromium.org \
--cc=stable@vger.kernel.org \
--cc=tom@talpey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®