test/testdata/test-execute/exec-noexecpaths-simple.service
raw| 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 | [Unit] |
| 3 | Description=Test for NoExecPaths= |
| 4 | |
| 5 | [Service] |
| 6 | Type=oneshot |
| 7 | # This should work, as we explicitly disable the effect of NoExecPaths= |
| 8 | ExecStart=+bash -c '/bin/cat /dev/null' |
| 9 | # This should also work, as we do not disable the effect of NoExecPaths= but invert the exit code |
| 10 | ExecStart=bash -x -c '! /bin/cat /dev/null' |
| 11 | NoExecPaths=/bin/cat |