Skip to content

u/65a

In this archive from Apr 2014 to Jun 2023

5
posts
201
comments
0
media
876
score

User session keyring is a kernel keyring, it's not where keys are usually permanently stored, but a safe way of holding them in memory. https://man7.org/linux/man-pages/man2/keyctl.2.html
Both of those examples are passphrase, so the key is derived from the passphrase and stored in protected kernel memory, until that memory is freed (or you reboot or something). Wherever you store the passphrase (maybe your head or a passphrase utility) is the permanent storage.

1 points

I think that actually just moves the problem into the flash chip, and/or UEFI vendor, which is definitely better but not complete. Solving this needs some provably secure root of trust and sealing the storage to the trust root as well (else I can just take out the hard drive, install malware and put it back in). I think you end up not really being able to solve this easily as an individual, at some point you are going to have to trust e.g. your TPM vendor (which itself has been a recurring problem), CPU vendor, and of course whatever crypto system is wiring all of that and your storage into the boot chain.

1 points

Fair point, though I need to update my muscle memory. -b -1 usually doesn't work when I need it to, probably for similar reasons or because the crash was fast enough to kill things before the disk write flushed. Need to get ramoops working.

1 points

But did you know that journalctl -k will happily print the very same lines to any user?

Yeah, I get what the idea is, that crashes may print sensitive memory locations, but is making me type sudo all the time to determine if my USB devices got detected may not be more secure...

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.