[CRIU] [PATCH 4/4] test: block prctl in seccomp_filter

Tycho Andersen tycho.andersen at canonical.com
Wed Dec 16 08:15:10 PST 2015


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: 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 805ad69..6fa5d3a 100644
--- a/test/zdtm/live/static/seccomp_filter.c
+++ b/test/zdtm/live/static/seccomp_filter.c
@@ -97,7 +97,7 @@ int main(int argc, char ** argv)
 		if (filter_syscall(__NR_ptrace) < 0)
 			_exit(1);
 
-		if (filter_syscall(__NR_getpid) < 0)
+		if (filter_syscall(__NR_prctl) < 0)
 			_exit(1);
 
 		setuid(1000);
-- 
2.5.0



More information about the CRIU mailing list