Skip to content
Snippets Groups Projects
Verified Commit 1aec1de5 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

Enable GnuPG system sockets

This makes use of [gnupg!2] and results in GnuPG's daemons being
supervised instead of getting spawned into random cgroups.

For example, when `archlinux-keyring` is updated, `gpg-agent` is
activated. The agent does not shut down by itself, keeping the user
session in `closing` state forever. This unclosed session then prevents
another local user from shutting down the system without admin rights.

[gnupg!2]: gnupg!2
parent 5fc0f631
No related branches found
No related tags found
1 merge request!4Enable GnuPG system sockets
......@@ -82,6 +82,14 @@ package() {
install -dm755 "$pkgdir/etc"
install -m644 "$srcdir/pacman.conf" "$pkgdir/etc"
install -m644 "$srcdir/makepkg.conf" "$pkgdir/etc"
local wantsdir="$pkgdir/usr/lib/systemd/system/sockets.target.wants"
install -dm755 "$wantsdir"
local unit
for unit in dirmngr gpg-agent gpg-agent-{browser,extra,ssh} keyboxd; do
ln -s "../${unit}@.socket" "$wantsdir/${unit}@etc-pacman.d-gnupg.socket"
done
}
# vim: set ts=2 sw=2 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment