Commit 9c39c061 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

test: block prctl in seccomp_filter

restore_creds uses prctl, so if we block this call in the seccomp filter
test, it causes things to fail (hang actually, seems we have some unhandled
error path here).
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3f9179e7
...@@ -97,7 +97,7 @@ int main(int argc, char ** argv) ...@@ -97,7 +97,7 @@ int main(int argc, char ** argv)
if (filter_syscall(__NR_ptrace) < 0) if (filter_syscall(__NR_ptrace) < 0)
_exit(1); _exit(1);
if (filter_syscall(__NR_getpid) < 0) if (filter_syscall(__NR_prctl) < 0)
_exit(1); _exit(1);
setuid(1000); setuid(1000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment