HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/test-execute/exec-readonlypaths-with-bindpaths.service

Git blob: 2879e3d079a64c1d34d54a4b09e8278567a8bbeb

Lines 1–10 of 10

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ReadOnlyPaths=
 
[Service]
ReadOnlyPaths=/etc -/i-dont-exist /usr
BindPaths=/etc:/tmp/etc2
ExecStart=bash -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var'
Type=oneshot