We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16eed50 commit ef0fdebCopy full SHA for ef0fdeb
tests/integration_tests.rs
@@ -99,9 +99,14 @@ fn test_empty_filter() {
99
100
// This should allow any system calls.
101
let pid = thread::spawn(move || {
102
+ let seccomp_level = unsafe { libc::prctl(libc::PR_GET_SECCOMP) };
103
+ assert_eq!(seccomp_level, 0);
104
// Install the filter.
105
apply_filter(&prog).unwrap();
106
107
108
+ assert_eq!(seccomp_level, 2);
109
+
110
unsafe { libc::getpid() }
111
})
112
.join()
0 commit comments