From 828a7a28d55221d19ab7026663153cc88271194d Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 18 Jul 2021 02:31:44 -0500 Subject: network/ircd-hybrid: Use setpriv instead of su for init Signed-off-by: Willy Sudiarto Raharjo --- network/ircd-hybrid/rc.ircd.new | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/ircd-hybrid/rc.ircd.new b/network/ircd-hybrid/rc.ircd.new index 056641aea963..448e269a399e 100644 --- a/network/ircd-hybrid/rc.ircd.new +++ b/network/ircd-hybrid/rc.ircd.new @@ -24,7 +24,7 @@ ircd_start() { mkdir -p $(dirname $PIDFILE) chown ircd:ircd $(dirname $PIDFILE) chmod 0750 $(dirname $PIDFILE) - sudo -u $NAME $DAEMON $DAEMON_ARGS + setpriv --reset-env --reuid $NAME $DAEMON $DAEMON_ARGS } ircd_stop() { -- cgit v1.2.3