Skip to content

Commit

Permalink
Remove successful clone test
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Oct 6, 2023
1 parent 233ba29 commit a9d302e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/seccomp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down

0 comments on commit a9d302e

Please sign in to comment.