summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-02-22 21:29:04 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-02-22 21:29:04 +0100
commit55aa537fb54a9c01820d4638babccdc8f8a0ef04 (patch)
treed5081deaaed2d60a851999d772dcb86d1b04aac8 /src/fastd.c
parent69c830f36376058df238bda39d15d42a0507af53 (diff)
downloadfastd-55aa537fb54a9c01820d4638babccdc8f8a0ef04.tar
fastd-55aa537fb54a9c01820d4638babccdc8f8a0ef04.zip
Add "drop privileges force" option which allows to drop CAP_NET_ADMIN even when fastd thinks it might still need it
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 37b00f9..1c4a00f 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -571,7 +571,7 @@ static inline void init(int argc, char *argv[]) {
exit_errno("status: close");
}
- if (conf.drop_caps == DROP_CAPS_EARLY)
+ if (conf.drop_caps == DROP_CAPS_EARLY || conf.drop_caps == DROP_CAPS_FORCE)
drop_caps();
if (ctx.iface)