It's been a day and I still don't grok kernel keyring possession.
I'd like a garbage collected anonymouss keyring for my ssh-agent, but it for some reason I can't run add_key own the process keyring 🙃
=> More informations about this toot | More toots from Foxboron@chaos.social
So for those interested, signal handling in Go makes the application loose possession of the session keyring.
So having all keyctl calls going through a goroutine pinned to an os thread solves the problem.
Keyring implementation: https://github.com/Foxboron/ssh-tpm-agent/pull/84/commits/785684f00aa3b6ad5a6f2006b00184d2bcd081d4
OS Thread pinned keyring implementation on top: https://github.com/Foxboron/ssh-tpm-agent/pull/84/commits/9654e1adb8b286e3fe01565a33c3b5c312082480
[#]Golang #Linux #Keyctl
=> More informations about this toot | More toots from Foxboron@chaos.social
text/gemini
This content has been proxied by September (ba2dc).