Toot

Written by Morten Linderud on 2025-01-12 at 16:36

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

Mentions

Tags

=> View golang tag | View linux tag | View keyctl tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113816356483468789
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
221.754946 milliseconds
Gemini-to-HTML Time
0.537298 milliseconds

This content has been proxied by September (ba2dc).