From a9d302e288370e32baf32d6992d03d4069f39028 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 6 Oct 2023 23:30:37 +0200 Subject: [PATCH] Remove successful clone test --- tests/seccomp.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/seccomp.rs b/tests/seccomp.rs index b32154d..70232da 100644 --- a/tests/seccomp.rs +++ b/tests/seccomp.rs @@ -23,11 +23,6 @@ fn main() { let flags = libc::CLONE_NEWUSER as libc::c_ulong; let result = unsafe { libc::syscall(libc::SYS_clone, flags, stack) }; assert_eq!(result, -1); - - // Ensure `clone` is allowed without flags. - let flags = 0; - let result = unsafe { libc::syscall(libc::SYS_clone, flags, stack) }; - assert!(result > 0); } #[cfg(not(target_os = "linux"))]