From 69c830f36376058df238bda39d15d42a0507af53 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 22 Feb 2016 21:03:40 +0100 Subject: Improve capability handling, retain required capabilities --- src/fastd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index 2a03858..37b00f9 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -355,7 +355,7 @@ static void set_groups(void) { /** Switches the user and drops all capabilities */ static void drop_caps(void) { set_user(); - fastd_cap_drop(); + fastd_cap_reacquire_drop(); } /** Will double fork and wait for a status notification from the child before exiting in the original parent */ @@ -536,7 +536,7 @@ static inline void init(int argc, char *argv[]) { fastd_update_time(); ctx.started = ctx.now; - fastd_cap_init(); + fastd_cap_acquire(); fastd_poll_init(); -- cgit v1.2.3