[PATCH v3 2/2] KEYS: Reject keyring creation with overridden credentials
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 5 22:11:04 UTC 2026
> If the current task is running with overridden credentials calling
> commit_creds() is forbidden and triggers a BUG_ON().
>
> Reject keyring creation with -EPERM when credentials are overridden.
>
> Cc: keyrings at vger.kernel.org
> Cc: linux-integrity at vger.kernel.org
> Cc: linux-kernel at vger.kernel.org
> Cc: linux-security-module at vger.kernel.org
> Cc: Eric Biggers <ebiggers at kernel.org>
> Cc: James Morris <jmorris at namei.org>
> Cc: "Serge E. Hallyn" <serge at hallyn.com>
> Cc: stable at vger.kernel.org # v5.10+
> Cc: stable at vger.kernel.org # v5.10+
> Fixes: 3b11a1decef0 ("CRED: Differentiate objective and effective subjective credentials on a task")
> Suggested-by: Jann Horn <jannh at google.com>
> Closes: https://lore.kernel.org/keyrings/CAG48ez0XjVSR=M--UBauTm8sJuc+ZbhKzaPa3a6wrSVHyoKevw@mail.gmail.com/
> Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261105220050.1421842-1-jarkko@kernel.org?part=2
More information about the Linux-security-module-archive
mailing list