Systemd/test/test-execute/exec-systemcallerrornumber-...

9 lines
224 B
Desktop File

[Unit]
Description=Test for SystemCallErrorNumber
[Service]
ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
Type=oneshot
SystemCallFilter=~uname
SystemCallErrorNumber=EACCES