summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-03-08 17:01:23 +0100
committerGitHub <noreply@github.com>2021-03-08 17:01:23 +0100
commitb9dec21409ad53816e8e4d627b0ab564b38130cc (patch)
tree8cbb245dadb94b3798e6ac262e656df7e1c14171 /test
parent00248fc4f7ba7f3a2604350e17dc599af58fad78 (diff)
parenta62f651b32ddd406bf395312d20095690123d46a (diff)
downloadsystemd-b9dec21409ad53816e8e4d627b0ab564b38130cc.tar.gz
Merge pull request #18921 from yuwata/seccomp-syscallfilter-18916
seccomp: fix issue in system call filter with errno
Diffstat (limited to 'test')
-rw-r--r--test/test-execute/exec-systemcallfilter-with-errno-in-allow-list.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-execute/exec-systemcallfilter-with-errno-in-allow-list.service b/test/test-execute/exec-systemcallfilter-with-errno-in-allow-list.service
new file mode 100644
index 0000000000..4b2636eb44
--- /dev/null
+++ b/test/test-execute/exec-systemcallfilter-with-errno-in-allow-list.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Test for SystemCallFilter with errno name (for issue #18916)
+
+[Service]
+ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
+Type=oneshot
+SystemCallFilter=@system-service
+SystemCallFilter=~uname:EILSEQ
+SystemCallErrorNumber=EACCES