Skip to content

Commit 9708ff7

Browse files
committed
debian: fix installing qubes-guid as suid
This is how it works on Fedora, so mirror the behavior in Debian package too. Technically it might be possible to avoid the suid, by adjusting at least log dir permissions, and probably few more. But that's separate change, unbreak Debian for now. Use postinst script instead of packaging with desired permissions already, because the qubes group doesn't exist at the package build time. QubesOS/qubes-issues#8841
1 parent e2f273d commit 9708ff7

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

debian/qubes-gui-daemon.postinst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
# postinst script for qubes-gui-daemon
3+
#
4+
# see: dh_installdeb(1)
5+
6+
case "${1}" in
7+
configure)
8+
if getent group qubes >/dev/null; then
9+
chgrp qubes /usr/bin/qubes-guid
10+
chmod 4750 /usr/bin/qubes-guid
11+
fi
12+
;;
13+
14+
abort-upgrade|abort-remove|abort-deconfigure)
15+
exit 0
16+
;;
17+
18+
*)
19+
echo "postinst called with unknown argument \`${1}'" >&2
20+
exit 1
21+
;;
22+
esac
23+
24+
# dh_installdeb will replace this with shell code automatically
25+
# generated by other debhelper scripts.
26+
27+
#DEBHELPER#
28+
29+
exit 0
30+
31+
# vim: set ts=4 sw=4 sts=4 et :

0 commit comments

Comments
 (0)