aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-05-20 16:15:17 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-05-20 16:15:17 +0200
commit50bb59a86d354f775f78198b7ecf27ce5300dacf (patch)
tree36bb89490d64eff22e16385a04911cc8bf9ecf62 /src/main.c
parent9c8dc27ee791b24e7325fa065cb57fa9b1339d11 (diff)
POTD skeleton #66.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index bb9a5c8..310dbe5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -74,7 +74,7 @@ int main(int argc, char *argv[])
}
caps_default_filter();
- pseccomp_init(&psc);
+ pseccomp_init(&psc, 0);
if (pseccomp_default_rules(psc))
FATAL("%s", "SECCOMP: adding default rules");
pseccomp_free(&psc);
@@ -148,8 +148,9 @@ int main(int argc, char *argv[])
if (child_pid == jail_pid ||
child_pid == rdr_pid) {
E2("%s daemon with pid %d terminated, exiting",
- (child_pid == jail_pid ? "Jail" : "Server"),
+ (child_pid == jail_pid ? "Jail" : "Redirector"),
(child_pid == jail_pid ? jail_pid : rdr_pid));
+ kill(0, SIGTERM);
break;
}
}