diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,6 +2,7 @@ #include <sys/types.h> #include <sys/wait.h> +#include "pseccomp.h" #include "capabilities.h" #include "log.h" #include "log_colored.h" @@ -34,11 +35,14 @@ int main(int argc, char *argv[]) (void) argc; (void) argv; arg0 = argv[0]; - caps_default_filter(); LOG_SET_FUNCS_VA(LOG_COLORED_FUNCS); N("%s (C) 2018 Toni Uhlig (%s)", PACKAGE_STRING, PACKAGE_BUGREPORT); + pseccomp_init(); + pseccomp_set_immutable(); + caps_default_filter(); + D("%s", "Forking into background/foreground"); daemon_pid = daemonize(1); ABORT_ON_FATAL( daemon_pid > 0, "Forking" ); |