]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-readonlypaths-mount-propagation.service
237cbb2efb43ba1bb838ba2dbce5f7a22c5d49b4
[thirdparty/systemd.git] / test / test-execute / exec-readonlypaths-mount-propagation.service
1 [Unit]
2 Description=Test to make sure that passing ReadOnlyPaths= disconnect mount propagation
3
4 [Service]
5 ReadOnlyPaths=-/i-dont-exist
6 ExecStart=/bin/sh -x -c 'mkdir -p /TEST; mount -t tmpfs tmpfs /TEST; grep TEST /proc/self/mountinfo && ! grep TEST /proc/$${PPID}/mountinfo && ! grep TEST /proc/1/mountinfo'
7 Type=oneshot