[PATCH v3 1/6] landlock: Factor out capability denial checks

sashiko-bot at kernel.org sashiko-bot at kernel.org
Wed Nov 18 14:55:27 UTC 2026


> commoncap also makes capability decisions from LSM hooks other than
> capable, and the following commits add Landlock counterparts for them.
> Move the check and its denial logging from hook_capable() into
> check_cap() so that these hooks share it.
> 
> No functional change.
> 
> Cc: Günther Noack <gnoack at google.com>
> Acked-by: Serge Hallyn (AMD) <sergeh at kernel.org>
> Reviewed-by: Günther Noack <gnoack at google.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/20261118145217.2551053-1-mic@digikod.net?part=1




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