summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2020-08-12 09:15:02 -0400
committerMatthew Heon <mheon@redhat.com>2020-08-12 09:15:02 -0400
commit7b3cf0c085361546f45cf86391eb9809229d0ca1 (patch)
tree9e5b653c617ef54de65ed3679d5e959e84a638aa
parent8eaacec150df782c291e9c6046bb0db010dd2f08 (diff)
downloadpodman-7b3cf0c085361546f45cf86391eb9809229d0ca1.tar.gz
podman-7b3cf0c085361546f45cf86391eb9809229d0ca1.tar.bz2
podman-7b3cf0c085361546f45cf86391eb9809229d0ca1.zip
Change /sys/fs/cgroup/systemd mount to rprivate
I used the wrong propagation first time around because I forgot that rprivate is the default propagation. Oops. Switch to rprivate so we're using the default. Signed-off-by: Matthew Heon <mheon@redhat.com>
-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")