]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add minimal userns config for plamo
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 13 Jan 2014 22:06:01 +0000 (17:06 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 13 Jan 2014 22:06:01 +0000 (17:06 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
config/templates/Makefile.am
config/templates/plamo.userns.conf.in [new file with mode: 0644]
configure.ac

index e864e1a227d833538da8aa6a9c9fe68b43fc9bd1..dd0dfa4bc32d168168f3028a47af3b876ac09e31 100644 (file)
@@ -2,6 +2,7 @@ templatesconfigdir=@LXCTEMPLATECONFIG@
 
 templatesconfig_DATA = \
        plamo.common.conf \
+       plamo.userns.conf \
        ubuntu-cloud.common.conf \
        ubuntu-cloud.lucid.conf \
        ubuntu-cloud.userns.conf \
diff --git a/config/templates/plamo.userns.conf.in b/config/templates/plamo.userns.conf.in
new file mode 100644 (file)
index 0000000..330a2f0
--- /dev/null
@@ -0,0 +1,9 @@
+# CAP_SYS_ADMIN in init-user-ns is required for cgroup.devices
+lxc.cgroup.devices.deny =
+lxc.cgroup.devices.allow =
+
+# Extra bind-mounts for userns
+lxc.mount.entry = /dev/console dev/console none bind,create=file 0 0
+lxc.mount.entry = /dev/null dev/null none bind,create=file 0 0
+lxc.mount.entry = /dev/tty dev/tty none bind,create=file 0 0
+lxc.mount.entry = /dev/urandom dev/urandom none bind,create=file 0 0
index e1536931d087c6c720cc59fcf165701d9962a50a..851426737ac1afa5254e3c3473e07e472d4d8e0e 100644 (file)
@@ -533,6 +533,7 @@ AC_CONFIG_FILES([
        config/etc/Makefile
        config/templates/Makefile
        config/templates/plamo.common.conf
+       config/templates/plamo.userns.conf
        config/templates/ubuntu-cloud.common.conf
        config/templates/ubuntu-cloud.lucid.conf
        config/templates/ubuntu-cloud.userns.conf