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

package info (click to toggle)
systemd 247.3-7%2Bdeb11u4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye-updates
  • size: 71,320 kB
  • sloc: ansic: 459,704; xml: 82,646; python: 24,815; sh: 8,987; perl: 2,684; makefile: 275; awk: 93; lisp: 13; sed: 1
file content (7 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (3)
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 'd=$$(mktemp -d -p /tmp); trap "umount \'$$d\' && rmdir \'$$d\'" EXIT; mount -t tmpfs tmpfs "$$d"; grep "$$d" /proc/self/mountinfo && ! grep "$$d" /proc/$${PPID}/mountinfo && ! grep "$$d" /proc/1/mountinfo'
Type=oneshot