services: bitlbee: Run as user "bitlbee".
Fixes <https://issues.guix.gnu.org/55450>.
Fixes a bug introduced in 211fe3f66e
whereby the inetd-spawned process would run as root (it would still run
in a separate user namespace, with UID 1000 inside of it, but had the
authority of root).
* gnu/services/messaging.scm (bitlbee-shepherd-service): Pass #:user
and #:group to 'make-inetd-constructor'. Remove "-u bitlbee" argument
to BITLBEE*.
parent
06a4a3634a
commit
ecfcdff23a
|
@ -855,14 +855,14 @@ string, you could instantiate a prosody service like this:
|
||||||
(start #~(if (defined? 'make-inetd-constructor)
|
(start #~(if (defined? 'make-inetd-constructor)
|
||||||
|
|
||||||
(make-inetd-constructor
|
(make-inetd-constructor
|
||||||
(list #$bitlbee* "-I"
|
(list #$bitlbee* "-I" "-c" #$conf)
|
||||||
"-u" "bitlbee" "-c" #$conf)
|
|
||||||
(addrinfo:addr
|
(addrinfo:addr
|
||||||
(car (getaddrinfo #$interface
|
(car (getaddrinfo #$interface
|
||||||
#$(number->string port)
|
#$(number->string port)
|
||||||
(logior AI_NUMERICHOST
|
(logior AI_NUMERICHOST
|
||||||
AI_NUMERICSERV))))
|
AI_NUMERICSERV))))
|
||||||
#:service-name-stem "bitlbee"
|
#:service-name-stem "bitlbee"
|
||||||
|
#:user "bitlbee" #:group "bitlbee"
|
||||||
|
|
||||||
;; Allow 'bitlbee-purple' to use libpurple plugins.
|
;; Allow 'bitlbee-purple' to use libpurple plugins.
|
||||||
#:environment-variables
|
#:environment-variables
|
||||||
|
|
Reference in New Issue