Skip to content

Commit 57224a3

Browse files
committed
Add openat syscall to exceptions, remove 1-sec-evil test
1 parent 1c719e3 commit 57224a3

File tree

5 files changed

+5
-39
lines changed

5 files changed

+5
-39
lines changed

src/seccomp/policy/DefaultPolicy.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ void DefaultPolicy::addExecutionControlRules(bool allowFork) {
4343
"sigsuspend",
4444
"clock_nanosleep",
4545
"open",
46-
"epoll_create1"});
46+
"epoll_create1",
47+
"openat"});
4748

4849
rules_.emplace_back(SeccompRule(
4950
"set_thread_area", action::ActionTrace([](auto& /* tracee */) {

test/src/1-sec-evil.c

-16
This file was deleted.

test/src/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ SET(CMAKE_CXX_FLAGS_RELEASE "")
77

88
# Time tests
99
ADD_EXECUTABLE(1-sec-prog 1-sec-prog.c)
10-
ADD_EXECUTABLE(1-sec-evil 1-sec-evil.c)
1110
ADD_EXECUTABLE(infinite-loop infinite-loop.c)
1211
SET_TARGET_PROPERTIES(1-sec-prog
13-
1-sec-evil
1412
infinite-loop
1513
PROPERTIES COMPILE_FLAGS "-m32"
1614
LINK_FLAGS "-m32")
@@ -48,7 +46,7 @@ ADD_EXECUTABLE(stderr-write stderr-write.c)
4846

4947
ADD_CUSTOM_TARGET(test-binaries
5048
DEPENDS
51-
1-sec-prog 1-sec-evil infinite-loop 1-sec-prog-th
49+
1-sec-prog infinite-loop 1-sec-prog-th
5250
leak-tiny_32 leak-huge_32 leak-dive_32
5351
leak-tiny_64 leak-huge_64 leak-dive_64
5452
sum_c sum_cxx stderr-write)

test/src/sum_python3.9.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/python3.9
22

3-
import numpy as np
3+
import numpy
44

5-
print(np.sum(list(map(int, input().split()))))
5+
print(numpy.sum(list(map(int, input().split()))))

test/testsuits/test_policy.py

-17
This file was deleted.

0 commit comments

Comments
 (0)