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 | View the thread | More toots from Foxboron@chaos.social
=> View golang tag | View linux tag | View keyctl tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini