diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-03-08 12:06:09 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-03-08 21:28:42 +0900 |
commit | a62f651b32ddd406bf395312d20095690123d46a (patch) | |
tree | 3f30ba596abc2c509ade9b6ac3da48f0d50620d0 /test/test-execute | |
parent | 68acc1afbe5cec50da1ffdc411dadda504e4caf5 (diff) | |
download | systemd-a62f651b32ddd406bf395312d20095690123d46a.tar.gz |
test: add one more test for system call filter with errno
Diffstat (limited to 'test/test-execute')
-rw-r--r-- | test/test-execute/exec-systemcallfilter-with-errno-in-allow-list.service | 9 |
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 |