From: Christian Brauner Date: Sun, 13 May 2018 13:02:09 +0000 (+0200) Subject: config: allow read-write /sys in user namespace X-Git-Tag: lxc-3.1.0~303^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6df6dd98b4290b7836a0207779ca4aee6e2a137;p=thirdparty%2Flxc.git 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 --- 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