aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-25 10:30:07 +0000
committerOmar Polo <op@omarpolo.com>2021-01-25 10:30:07 +0000
commitae08ec7da5bf349bea4621219df41f297b3116e9 (patch)
tree23242f4e491585550e26ba0bbadf3911ca5612fc /parse.y
parent2030e314860f1ba4a1b0294b741164dca2391466 (diff)
chroot & drop privileges
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 5e7cb21..9793459 100644
--- a/parse.y
+++ b/parse.y
@@ -45,7 +45,8 @@ extern void yyerror(const char*);
int num;
}
-%token TDAEMON TIPV6 TPORT TPROTOCOLS TMIME TDEFAULT TTYPE TSERVER
+%token TDAEMON TIPV6 TPORT TPROTOCOLS TMIME TDEFAULT TTYPE
+%token TCHROOT TUSER TSERVER
%token TLOCATION TCERT TKEY TROOT TCGI TLANG TINDEX TAUTO
%token TERR
@@ -69,6 +70,8 @@ option : TDAEMON TBOOL { conf.foreground = !$2; }
errx(1, "invalid protocols string \"%s\"", $2);
}
| TMIME TSTRING TSTRING { add_mime(&conf.mime, $2, $3); }
+ | TCHROOT TSTRING { conf.chroot = $2; }
+ | TUSER TSTRING { conf.user = $2; }
;
vhosts : /* empty */