Merge pull request #7281 from mheon/ensure_mountprop_systemd

Ensure correct propagation for cgroupsv1 systemd cgroup
This commit is contained in:
OpenShift Merge Robot
2020-08-11 15:01:00 -04:00
committed by GitHub

View File

@ -626,7 +626,7 @@ func (c *Container) setupSystemd(mounts []spec.Mount, g generate.Generator) erro
Destination: "/sys/fs/cgroup/systemd", Destination: "/sys/fs/cgroup/systemd",
Type: "bind", Type: "bind",
Source: "/sys/fs/cgroup/systemd", Source: "/sys/fs/cgroup/systemd",
Options: []string{"bind", "nodev", "noexec", "nosuid"}, Options: []string{"bind", "nodev", "noexec", "nosuid", "rslave"},
} }
g.AddMount(systemdMnt) g.AddMount(systemdMnt)
g.AddLinuxMaskedPaths("/sys/fs/cgroup/systemd/release_agent") g.AddLinuxMaskedPaths("/sys/fs/cgroup/systemd/release_agent")