summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-systemcallfilter-with-errno-in-allow-list.service
blob: 4b2636eb44d2f37a211bc235a921a9f238e9e3c4 (plain)
1
2
3
4
5
6
7
8
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