Skip to content
Snippets Groups Projects
Commit 3261fb79 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

forbid also fork

parent 8934374a
Branches
Tags ws22_23
No related merge requests found
......@@ -40,9 +40,10 @@ static int install_filter(int nr, int arch, int error) {
int main(int argc, char *argv[]) {
pid_t id;
printf("Test sandbox!\n");
printf("Enable sandbox!\n");
install_filter(__NR_clone, AUDIT_ARCH_X86_64, EPERM);
install_filter(__NR_fork, AUDIT_ARCH_X86_64, EPERM);
id = fork();
if (id == -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment