[lxc-devel] [lxc/master] Auto-create /dev/shm and /dev/mqueue
Rachid-Koucha on Github
lxc-bot at linuxcontainers.org
Mon Mar 16 20:19:36 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 427 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200316/407cb7ec/attachment.bin>
-------------- next part --------------
From 1f76a6a77751adb6d56310abde8a260cc107d214 Mon Sep 17 00:00:00 2001
From: Rachid Koucha <47061324+Rachid-Koucha at users.noreply.github.com>
Date: Mon, 16 Mar 2020 21:19:15 +0100
Subject: [PATCH] Auto-create /dev/shm and /dev/mqueue
Mount fs on /dev/shm and /dev/mqueue to experiment IPC in namespaces
Signed-off-by: Rachid Koucha <rachid.koucha at gmail.com>
---
templates/lxc-busybox.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
index b6fe8f1e17..c7ddc2d79a 100644
--- a/templates/lxc-busybox.in
+++ b/templates/lxc-busybox.in
@@ -76,7 +76,6 @@ ${rootfs}/tmp \
${rootfs}/var/log \
${rootfs}/var/run \
${rootfs}/dev/pts \
-${rootfs}/dev/shm \
${rootfs}/lib \
${rootfs}/usr/lib \
${rootfs}/lib64 \
@@ -237,6 +236,7 @@ lxc.cap.drop = sys_module mac_admin mac_override sys_time
lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed
lxc.mount.entry = shm dev/shm tmpfs defaults,create=dir 0 0
+lxc.mount.entry = mqueue dev/mqueue mqueue defaults,create=dir 0 0
EOF
libdirs="\
More information about the lxc-devel
mailing list