FS#80238 - [gnupg] support service and socket file for keyboxd

Attached to Project: Arch Linux
Opened by Celeste (Coelacanthus) - Sunday, 12 November 2023, 09:42 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:22 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Lukas Fleischer (lfleischer)
David Runge (dvzrv)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In gpg 2.4.3, gpg introduce a new service named keyboxd, it listen %t/gnupg/S.keyboxd.
If no service and socket, and add use-keyboxd in commnon.conf, gpg will be broken.
https://lwn.net/Articles/918269/
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:22 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/gnupg/issues/2
Comment by Toolybird (Toolybird) - Sunday, 12 November 2023, 20:09 GMT Comment by David Runge (dvzrv) - Monday, 13 November 2023, 11:21 GMT
@Coalacanthus: Thanks for the report.

As upstream removed their systemd support (due to not understanding, or wanting to understand, how systemd works) we would have to create integration ourselves. Can you please try whether the two attached systemd user units fix your problem?
To test for your local user, you can move them to e.g. `~/.config/systemd/user/` and then enable the socket via `systemctl --user daemon-reload && systemctl --user enable --now keyboxd.socket`
Comment by David Runge (dvzrv) - Monday, 13 November 2023, 11:28 GMT
ERRATA: I have not included an `[Install]` section (for vendored activation later on).

You can still start the socket, but you can not enable it: `systemctl --user daemon-reload && systemctl --user start keyboxd.socket`
Comment by Celeste (Coelacanthus) - Monday, 13 November 2023, 11:43 GMT
.socket can activate .service, but both sides (gpg and keyboxd) are stuck on recvmsg...
Comment by David Runge (dvzrv) - Monday, 13 November 2023, 12:01 GMT
Hm, maybe keyboxd is actually started by something else (e.g. gpg-agent).
Probably needs a bit of investigation on how to do this right... -_-
Comment by Celeste (Coelacanthus) - Monday, 13 November 2023, 12:21 GMT
It seems keyboxd has no scoket activation support, unlike gpg-agent. But we can just provide a user service, so user can just enable to use.
And service need some modification to run, Type should be forking and arguments should be --daemon.
Comment by Celeste (Coelacanthus) - Monday, 13 November 2023, 12:31 GMT
> Hm, maybe keyboxd is actually started by something else (e.g. gpg-agent).

I can confirm there is no other keyboxd via pgrep.

Loading...