summaryrefslogtreecommitdiffstats
path: root/src/config.y
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/config.y
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/config.y')
-rw-r--r--src/config.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.y b/src/config.y
index a064d97..2e111ff 100644
--- a/src/config.y
+++ b/src/config.y
@@ -84,6 +84,7 @@
%token TOK_ESTABLISH
%token TOK_FATAL
%token TOK_FLOAT
+%token TOK_FORCE
%token TOK_FORWARD
%token TOK_FROM
%token TOK_GROUP
@@ -244,6 +245,9 @@ drop_capabilities_enabled:
TOK_EARLY {
$$ = DROP_CAPS_EARLY;
}
+ | TOK_FORCE {
+ $$ = DROP_CAPS_FORCE;
+ }
| boolean {
$$ = $1 ? DROP_CAPS_ON : DROP_CAPS_OFF;
}