diff options
Diffstat (limited to '')
-rw-r--r-- | server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server.c b/server.c index ade834d..47441cc 100644 --- a/server.c +++ b/server.c @@ -35,6 +35,7 @@ #ifdef __FreeBSD__ #include <libutil.h> +#include <sys/capsicum.h> #endif #include "torus.h" @@ -396,6 +397,9 @@ int main(int argc, char *argv[]) { if (error) err(EX_CANTCREAT, "%s", sockPath); #ifdef __FreeBSD__ + error = cap_enter(); + if (error) err(EX_OSERR, "cap_enter"); + if (pid) { error = daemon(0, 0); if (error) err(EX_OSERR, "daemon"); |