mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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*.
This commit is contained in:
parent
06a4a3634a
commit
ecfcdff23a
1 changed files with 2 additions and 2 deletions
|
@ -855,14 +855,14 @@ (define bitlbee-shepherd-service
|
|||
(start #~(if (defined? 'make-inetd-constructor)
|
||||
|
||||
(make-inetd-constructor
|
||||
(list #$bitlbee* "-I"
|
||||
"-u" "bitlbee" "-c" #$conf)
|
||||
(list #$bitlbee* "-I" "-c" #$conf)
|
||||
(addrinfo:addr
|
||||
(car (getaddrinfo #$interface
|
||||
#$(number->string port)
|
||||
(logior AI_NUMERICHOST
|
||||
AI_NUMERICSERV))))
|
||||
#:service-name-stem "bitlbee"
|
||||
#:user "bitlbee" #:group "bitlbee"
|
||||
|
||||
;; Allow 'bitlbee-purple' to use libpurple plugins.
|
||||
#:environment-variables
|
||||
|
|
Loading…
Reference in a new issue