summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-readonlypaths-mount-propagation.service
blob: 237cbb2efb43ba1bb838ba2dbce5f7a22c5d49b4 (plain)
1
2
3
4
5
6
7
[Unit]
Description=Test to make sure that passing ReadOnlyPaths= disconnect mount propagation

[Service]
ReadOnlyPaths=-/i-dont-exist
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'
Type=oneshot