From: Lennart Poettering Date: Fri, 10 Oct 2014 09:11:25 +0000 (+0200) Subject: nspawn: actually allow access to /dev/net/tun in the container X-Git-Tag: v217~251 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=864e17068ce9acf418d42a625141884293170952;ds=sidebyside nspawn: actually allow access to /dev/net/tun in the container It's not sufficient to just copy the device node over, we need to update the policy for it too. --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index da4c116f3..f04d32613 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -1558,6 +1558,7 @@ static int register_machine(pid_t pid, int local_ifindex) { "/dev/random", "rwm", "/dev/urandom", "rwm", "/dev/tty", "rwm", + "/dev/net/tun", "rwm", /* Allow the container * access to ptys. However, * do not permit the