[lxc-devel] [lxc/master] lxc-alpine: mount tmpfs under /run

jirutka on Github lxc-bot at linuxcontainers.org
Sat Jul 23 17:57:47 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 381 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160723/40f4aa6e/attachment.bin>
-------------- next part --------------
From b02b683db8aa17bed3e4ef9580370c9ea08c1dc5 Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub at jirutka.cz>
Date: Sat, 23 Jul 2016 19:57:36 +0200
Subject: [PATCH] lxc-alpine: mount tmpfs under /run

When running under grsecurity kernel or userns, it can't be mounted from inside.
---
 config/templates/alpine.common.conf.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/config/templates/alpine.common.conf.in b/config/templates/alpine.common.conf.in
index 034a33b..28b5523 100644
--- a/config/templates/alpine.common.conf.in
+++ b/config/templates/alpine.common.conf.in
@@ -18,3 +18,6 @@ lxc.cap.drop = sys_resource
 lxc.cap.drop = sys_tty_config
 lxc.cap.drop = syslog
 lxc.cap.drop = wake_alarm
+
+# Mount tmpfs under /run.
+lxc.mount.entry=run run tmpfs rw,nodev,relatime,size=50660k,mode=755 0 0


More information about the lxc-devel mailing list