Commit graph

6 commits

Author SHA1 Message Date
5fe9ba36a2 Add signal handler for SIGTERM
When the head process receives a SIGTERM we have to forward that to the init
process, which in turn has to forward it to the executed process which is
jailed. That process can then decide to exit, which also terminates the init and
head process through SIGCHILD/wait means.
2021-01-12 19:51:05 +01:00
1f5e1a9c1f Drop root privileges earlier
We don't need the root privileges after we unshare and the first fork. Therefor
we can drop those for safety reasons.
2021-01-12 19:50:07 +01:00
f3cd63c137 Use execvp instead execv
execvp resolves the executable location using PATH
2021-01-12 13:24:08 +01:00
8ac3b8afe3 Add install target to Makefile 2021-01-07 21:13:59 +01:00
2c397da373 Initial version 2021-01-06 04:42:04 +01:00
3f5f72f940 Initial empty commit. 2021-01-06 04:37:43 +01:00