From c6df6dd98b4290b7836a0207779ca4aee6e2a137 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 13 May 2018 15:02:09 +0200 Subject: [PATCH] config: allow read-write /sys in user namespace Unprivileged containers can safely mount /sys as read-write. This also allows systemd-udevd to be started in unprivileged containers. Signed-off-by: Christian Brauner --- config/templates/userns.conf.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/templates/userns.conf.in b/config/templates/userns.conf.in index 967576b4c..19013da5b 100644 --- a/config/templates/userns.conf.in +++ b/config/templates/userns.conf.in @@ -8,3 +8,6 @@ lxc.cap.keep = # We can't move bind-mounts, so don't use /dev/lxc/ lxc.tty.dir = + +# Setup the default mounts +lxc.mount.auto = sys:rw