File: exec-protectkernelmodules-yes-mount-propagation.service

package info (click to toggle)
systemd 232-25%2Bdeb9u12
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 46,192 kB
  • sloc: ansic: 290,590; xml: 49,217; makefile: 5,503; sh: 4,031; python: 2,596; perl: 1,838
file content (7 lines) | stat: -rw-r--r-- 327 bytes parent folder | download
1
2
3
4
5
6
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