diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-02-22 21:03:40 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-02-22 21:03:40 +0100 |
commit | 69c830f36376058df238bda39d15d42a0507af53 (patch) | |
tree | 0ea9ae4a898c04d0ff5df5679981290faf9b0232 /src/fastd.c | |
parent | 995380597a0df69504ffa2f1782290ffa2614d18 (diff) | |
download | fastd-69c830f36376058df238bda39d15d42a0507af53.tar fastd-69c830f36376058df238bda39d15d42a0507af53.zip |
Improve capability handling, retain required capabilities
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |