]>
Commit | Line | Data |
---|---|---|
22d3cfe5 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
ddc155b2 TM |
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=+/bin/sh -c '/bin/cat /dev/null' | |
9 | # This should also work, as we do not disable the effect of NoExecPaths= but invert the exit code | |
63403f07 | 10 | ExecStart=sh -x -c '! /bin/cat /dev/null' |
ddc155b2 | 11 | NoExecPaths=/bin/cat |