diff options
author | Djalal Harouni <tixxdz@opendz.org> | 2016-10-09 12:38:45 +0200 |
---|---|---|
committer | Djalal Harouni <tixxdz@opendz.org> | 2016-10-12 14:12:36 +0200 |
commit | 4982dbcc300d4599aa6ac143e922d6fbee31a860 (patch) | |
tree | d6ffcf3f64aec72bc7fb40893f52256b50a86468 /test | |
parent | core: make sure to dump ProtectKernelModules= value (diff) | |
download | systemd-4982dbcc300d4599aa6ac143e922d6fbee31a860.tar.xz systemd-4982dbcc300d4599aa6ac143e922d6fbee31a860.zip |
test: add test to make sure that ProtectKernelModules=yes disconnect mount propagation
Diffstat (limited to 'test')
-rw-r--r-- | test/test-execute/exec-protectkernelmodules-yes-mount-propagation.service | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-execute/exec-protectkernelmodules-yes-mount-propagation.service b/test/test-execute/exec-protectkernelmodules-yes-mount-propagation.service new file mode 100644 index 0000000000..e438783df3 --- /dev/null +++ b/test/test-execute/exec-protectkernelmodules-yes-mount-propagation.service @@ -0,0 +1,7 @@ +[Unit] +Description=Test to make sure that passing ProtectKernelModules=yes disconnect mount propagation + +[Service] +ProtectKernelModules=yes +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 |