summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-12 23:23:16 +0200
committerGitHub <noreply@github.com>2020-08-12 23:23:16 +0200
commitacae04aaaf1235ee2e2475d97155783dc4aefc9f (patch)
tree03cda657e516d5fea7d6fba66dfca91588fbb95f
parent4ef4f522f9a2850e14a93186c647175685166d95 (diff)
parent7b3cf0c085361546f45cf86391eb9809229d0ca1 (diff)
downloadpodman-acae04aaaf1235ee2e2475d97155783dc4aefc9f.tar.gz
podman-acae04aaaf1235ee2e2475d97155783dc4aefc9f.tar.bz2
podman-acae04aaaf1235ee2e2475d97155783dc4aefc9f.zip
Merge pull request #7306 from mheon/private_mount
Change /sys/fs/cgroup/systemd mount to rprivate
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index e2bc4e50f..fdee3877c 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -626,7 +626,7 @@ func (c *Container) setupSystemd(mounts []spec.Mount, g generate.Generator) erro
Destination: "/sys/fs/cgroup/systemd",
Type: "bind",
Source: "/sys/fs/cgroup/systemd",
- Options: []string{"bind", "nodev", "noexec", "nosuid", "rslave"},
+ Options: []string{"bind", "nodev", "noexec", "nosuid", "rprivate"},
}
g.AddMount(systemdMnt)
g.AddLinuxMaskedPaths("/sys/fs/cgroup/systemd/release_agent")