Add minimal userns config for plamo

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2014-01-13 17:06:01 -05:00
parent 484ed03088
commit cb13115193
No known key found for this signature in database
GPG Key ID: C638974D64792D67
3 changed files with 11 additions and 0 deletions

View 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 \

View File

@ -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

View 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