Linux Documentation
 help / color / mirror / Atom feed
* [PATCH 0/2] KEYS: Fix credential handling in lookup_user_key()
@ 2026-11-29 21:41 Jarkko Sakkinen
  2026-11-29 21:41 ` [PATCH 1/2] KEYS: Return user session keyring on lookup Jarkko Sakkinen
  2026-11-29 21:41 ` [PATCH 2/2] KEYS: Reject keyring creation with overridden credentials Jarkko Sakkinen
  0 siblings, 2 replies; 3+ messages in thread
From: Jarkko Sakkinen @ 2026-11-29 21:41 UTC (permalink / raw)
  To: keyrings
  Cc: Jarkko Sakkinen, linux-doc, linux-security-module, David Howells,
	Guicai Ma, James Morris, Jann Horn, Jonathan Corbet, Paul Moore,
	Randy Dunlap, Serge E. Hallyn, Shuah Khan

The commit messages looked a bit too stub so I refined them just a bit
and piggybacked these changes for a sanity check round:

1. Return the user session keyring directly on non-creating
   KEY_SPEC_SESSION_KEYRING lookups instead of mutating task credentials.
2. Reject KEY_LOOKUP_CREATE with -EPERM when subjective credentials are
   overridden, avoiding the BUG_ON() in commit_creds().

Hope this helps with the clarity. They are pushed to my -next mirror
branch but I can still either drop or add more tags. If nothing comes
up, I'll just move forward with the PR.

Link: https://lore.kernel.org/keyrings/CAG48ez0XjVSR=M--UBauTm8sJuc+ZbhKzaPa3a6wrSVHyoKevw@mail.gmail.com/

Cc: keyrings@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Cc: linux-security-module@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>
Cc: Guicai Ma <maguicai@kylinos.cn>
Cc: James Morris <jmorris@namei.org>
Cc: Jann Horn <jannh@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Paul Moore <paul@paul-moore.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>

Jarkko Sakkinen (2):
  KEYS: Return user session keyring on lookup
  KEYS: Reject keyring creation with overridden credentials

 Documentation/security/keys/core.rst |  7 ++--
 security/keys/keyctl.c               |  5 ++-
 security/keys/process_keys.c         | 50 +++++++++-------------------
 3 files changed, 22 insertions(+), 40 deletions(-)


base-commit: 822ba3a89c7896b26e4beb70e2ebffb881924dfe
prerequisite-patch-id: 6b9f0c26cb5c2290d5a2a78c18ccf225b09a6bbb
prerequisite-patch-id: 0f71199bbbbaf9fe1fa82afb1926b452c493532e
prerequisite-patch-id: 97be79eb77addef7282d5cb9966c4208cf0e965e
--
2.47.3


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-29 21:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 21:41 [PATCH 0/2] KEYS: Fix credential handling in lookup_user_key() Jarkko Sakkinen
2026-11-29 21:41 ` [PATCH 1/2] KEYS: Return user session keyring on lookup Jarkko Sakkinen
2026-11-29 21:41 ` [PATCH 2/2] KEYS: Reject keyring creation with overridden credentials Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox