diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-25 10:30:07 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-25 10:30:07 +0000 |
commit | ae08ec7da5bf349bea4621219df41f297b3116e9 (patch) | |
tree | 23242f4e491585550e26ba0bbadf3911ca5612fc /parse.y | |
parent | 2030e314860f1ba4a1b0294b741164dca2391466 (diff) |
chroot & drop privileges
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 */ |