]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/test-execute/exec-noexecpaths-simple.service
Merge pull request #30844 from keszybz/rename-uid-alloc-range
[thirdparty/systemd.git] / test / test-execute / exec-noexecpaths-simple.service
CommitLineData
22d3cfe5 1# SPDX-License-Identifier: LGPL-2.1-or-later
ddc155b2
TM
2[Unit]
3Description=Test for NoExecPaths=
4
5[Service]
6Type=oneshot
7# This should work, as we explicitly disable the effect of NoExecPaths=
8ExecStart=+/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 10ExecStart=sh -x -c '! /bin/cat /dev/null'
ddc155b2 11NoExecPaths=/bin/cat