[CRIU] [PATCH] test: report actual errno on seccomp prctl failure
Tycho Andersen
tycho.andersen at canonical.com
Mon Dec 14 07:52:21 PST 2015
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
test/zdtm/live/static/seccomp_filter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/zdtm/live/static/seccomp_filter.c b/test/zdtm/live/static/seccomp_filter.c
index 700e4de..356590f 100644
--- a/test/zdtm/live/static/seccomp_filter.c
+++ b/test/zdtm/live/static/seccomp_filter.c
@@ -58,7 +58,7 @@ int filter_syscall(int syscall_nr)
};
if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &bpf_prog) < 0) {
- pr_err("prctl failed");
+ pr_perror("prctl failed");
return -1;
}
--
2.6.4
More information about the CRIU
mailing list