[PATCH v3 2/2] selftests/landlock: Test PR_SET_SECUREBITS mediation

sashiko-bot at kernel.org sashiko-bot at kernel.org
Wed Nov 18 14:59:56 UTC 2026


> Test that Landlock denies and logs a privileged PR_SET_SECUREBITS
> change, now that the previous commit routes its CAP_SETPCAP check
> through the capable hooks, and that an unprivileged change still
> succeeds.  The domain deallocation record must then report exactly one
> denial, which proves that the unprivileged change was not denied,
> without relying on a no-record timeout.
> 
> The check-exec selftests already cover commoncap's securebits semantics.
> Without the previous commit, this test fails.
> 
> Cc: Christian Brauner <brauner at kernel.org>
> Cc: Günther Noack <gnoack at google.com>
> Cc: Paul Moore <paul at paul-moore.com>
> Cc: Serge Hallyn <serge at hallyn.com>
> Signed-off-by: Mickaël Salaün <mic at digikod.net>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261118145431.2551578-1-mic@digikod.net?part=2




More information about the Linux-security-module-archive mailing list