summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-systemcallfilter-override-error-action2.service
blob: ffa35e64dff2a847f2c18f6910541161d9f3d7e6 (plain)
1
2
3
4
5
6
7
8
9
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for SystemCallFilter with specific errno action overriding default kill action

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