summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2020-08-12 09:15:02 -0400
committerMatthew Heon <matthew.heon@pm.me>2020-08-20 12:16:52 -0400
commitc14b6c366288c875155d8bbb33c322843b438741 (patch)
treea43f3fc14325987b8a6570df9273d292c5a9d5cd /libpod
parent34f4a892e4056dd660db85db6ee8baa0470dd6f2 (diff)
downloadpodman-c14b6c366288c875155d8bbb33c322843b438741.tar.gz
podman-c14b6c366288c875155d8bbb33c322843b438741.tar.bz2
podman-c14b6c366288c875155d8bbb33c322843b438741.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>
Diffstat (limited to 'libpod')
-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 d72e3ad47..b9e4f9a93 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -575,7 +575,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"},
+ Options: []string{"bind", "nodev", "noexec", "nosuid", "rprivate"},
}
g.AddMount(systemdMnt)
g.AddLinuxMaskedPaths("/sys/fs/cgroup/systemd/release_agent")