mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] keys: Address lookup_user_key() mutability
@ 2026-09-24  5:55 Jarkko Sakkinen
  2026-09-24  5:55 ` [RFC PATCH 1/2] keys: Return user session keyring on lookup Jarkko Sakkinen
  2026-09-24  5:55 ` [RFC PATCH 2/2] keys: Reject keyring creation with overridden credentials Jarkko Sakkinen
  0 siblings, 2 replies; 3+ messages in thread
From: Jarkko Sakkinen @ 2026-09-24  5:55 UTC (permalink / raw)
  To: keyrings
  Cc: Jann Horn, linux-kernel, linux-security-module, Jarkko Sakkinen,
	David Howells, Paul Moore, James Morris, Serge E. Hallyn

The main objective in these patches is to remove to unneeded mutability
from key look ups. It does harm and brings no value so it is pretty obvious
to me that addressing this harmful behaviour is what we should do.

I based the first patch on what Jann suggested in [1]. Nothing too clever here
and I'm ofc open for further suggestions.

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

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/process_keys.c         | 65 +++++++++++++++-------------
 2 files changed, 40 insertions(+), 32 deletions(-)

--
2.47.3


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

end of thread, other threads:[~2026-09-24  5:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24  5:55 [RFC PATCH 0/2] keys: Address lookup_user_key() mutability Jarkko Sakkinen
2026-09-24  5:55 ` [RFC PATCH 1/2] keys: Return user session keyring on lookup Jarkko Sakkinen
2026-09-24  5:55 ` [RFC 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

all inboxes | Powered by JetHome®