summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2018-09-19 17:17:31 -0400
committerPaul Moore <paul@paul-moore.com>2018-09-19 19:25:20 -0400
commit70df5b32573772cf3d103b7523ee1be14c0251df (patch)
tree3429e445e4a095ac51ccb90f2dee8651dcddf338
parent82cc261798966fbe1a4a9ffb40c4ab3be192e4b1 (diff)
downloadlibseccomp-70df5b32573772cf3d103b7523ee1be14c0251df.tar.gz
tests: add openat() to the syscall whitelist in test 44
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--tests/44-live-a2_order.c3
-rwxr-xr-xtests/44-live-a2_order.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/44-live-a2_order.c b/tests/44-live-a2_order.c
index 70f33da..9d12791 100644
--- a/tests/44-live-a2_order.c
+++ b/tests/44-live-a2_order.c
@@ -152,6 +152,9 @@ int main(int argc, char *argv[])
rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 0);
if (rc != 0)
goto out;
+ rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(openat), 0);
+ if (rc != 0)
+ goto out;
rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(stat), 0);
if (rc != 0)
goto out;
diff --git a/tests/44-live-a2_order.py b/tests/44-live-a2_order.py
index c4c5f56..4bd56a1 100755
--- a/tests/44-live-a2_order.py
+++ b/tests/44-live-a2_order.py
@@ -91,6 +91,7 @@ def test():
f.add_rule(ALLOW, "exit")
f.add_rule(ALLOW, "brk")
f.add_rule(ALLOW, "open")
+ f.add_rule(ALLOW, "openat")
f.add_rule(ALLOW, "stat")
f.add_rule(ALLOW, "write")
f.load()