~/talk

What is Linux kernel keystore and why you should use it in your next app

Talkat Build Stuff 2025 · 2025-12-03..12-05· [linux-and-operating-systems, security]
slides:none on file

Linux kernel keystore stores keys as kernel objects inside session keyring and other ring types, accessible by add_key or requested on demand with request_key; keys can be user, logon, asymmetric, encrypted or TPM-wrapped keys. Demo shows keyctl and OpenSSL PKCS8 import, an eBPF probe proving session keys are auto-destroyed on logout, and a Python request-key plugin that derivates machine+app keys from TPM. Proof-of-concept OpenSSH patch uses kernel-backed keys so plain-text secrets never enter user space.

AI-written summary · about

  1. 0:00Introduction and why Linux kernel keystore matters
  2. 3:00Process isolation, memory layout, and why secrets leak
  3. 6:00Common ways cryptographic keys are exposed in applications
  4. 9:00Using process separation to protect sensitive keys
  5. 12:00Linux kernel keystore basics: keyrings and key objects
  6. 16:00Working with keys and sharing secrets between users
  7. 20:00Session, process, thread, and persistent keyrings
  8. 24:00Key types: user keys, logon keys, and asymmetric keys
  9. 28:00Secure key usage with signing and cryptographic operations
  10. 31:00TPM, trusted keys, and encrypted key provisioning
  11. 35:00Designing more secure Linux app architectures with kernel-backed secrets
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.