From: sashiko-bot@kernel.org
Cc: linux-security-module@vger.kernel.org, selinux@vger.kernel.org
Subject: Re: [PATCH 3/6] apparmor: Use security_capable_lsm() for policy capabilities
Date: Tue, 10 Nov 2026 20:42:19 +0000 [thread overview]
Message-ID: <sashiko-outbox-207725@kernel.org> (raw)
In-Reply-To: <20261110203042.2410140-4-mic@digikod.net>
> AppArmor checks CAP_MAC_ADMIN for policy management and CAP_MAC_OVERRIDE
> for unconfined stacking with cap_capable() instead of capable(), so that
> other stacked LSMs do not have to authorize them. This also lets a
> process in a Landlock domain that denies CAP_MAC_ADMIN manage AppArmor
> policy, and one that denies CAP_MAC_OVERRIDE avoid the stacking
> restriction on unconfined profile changes.
>
> Commit 31ec99e13346 ("apparmor: switch to apparmor to internal capable
> check for policy management") made this choice for CAP_MAC_ADMIN.
>
> Switch these checks to security_capable_lsm(), which keeps this choice
> for LSMs that only implement the capable hook. policy_ns_capable()
> still makes its own aa_capable() check. Update the comments that
> described these checks.
>
> Cc: Georgia Garcia <georgia.garcia@canonical.com>
> Cc: Günther Noack <gnoack@google.com>
> Cc: John Johansen <john.johansen@canonical.com>
> Cc: Paul Moore <paul@paul-moore.com>
> Fixes: 97c8386f1d74 ("landlock: Enforce capability restrictions")
> Signed-off-by: Mickaël Salaün <mic@digikod.net>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261110203042.2410140-1-mic@digikod.net?part=3
next prev parent reply other threads:[~2026-11-10 20:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 20:30 [PATCH 0/6] Fix Landlock mediation of capabilities guarding LSM policies Mickaël Salaün
2026-11-10 20:30 ` [PATCH 1/6] lsm: Add a capable_lsm hook for capabilities guarding an LSM's policy Mickaël Salaün
2026-11-10 20:36 ` sashiko-bot
2026-11-10 20:30 ` [PATCH 2/6] landlock: Restrict capabilities guarding other LSMs' policies Mickaël Salaün
2026-11-10 20:38 ` sashiko-bot
2026-11-10 20:30 ` [PATCH 3/6] apparmor: Use security_capable_lsm() for policy capabilities Mickaël Salaün
2026-11-10 20:42 ` sashiko-bot [this message]
2026-11-10 20:30 ` [PATCH 4/6] smack: Use security_capable_lsm() for privilege checks Mickaël Salaün
2026-11-10 20:45 ` sashiko-bot
2026-11-10 20:30 ` [PATCH 5/6] selinux: Use security_capable_lsm() for CAP_MAC_ADMIN checks Mickaël Salaün
2026-11-10 20:47 ` sashiko-bot
2026-11-10 20:30 ` [PATCH 6/6] selftests/landlock: Test capabilities guarding other LSMs' policies Mickaël Salaün
2026-11-10 21:02 ` sashiko-bot
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=sashiko-outbox-207725@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=selinux@vger.kernel.org \
/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