Commit 182ed5e8 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

test: report actual errno on seccomp prctl failure

Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4427a715
...@@ -58,7 +58,7 @@ int filter_syscall(int syscall_nr) ...@@ -58,7 +58,7 @@ int filter_syscall(int syscall_nr)
}; };
if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &bpf_prog) < 0) { if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &bpf_prog) < 0) {
pr_err("prctl failed"); pr_perror("prctl failed");
return -1; return -1;
} }
......
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