Permalink
Browse files

added /dev/net/tun

  • Loading branch information...
1 parent 2ab7ddb commit a3aeacf32e68cbf902d93ab01e2495fd8dda2e72 @lucapost lucapost committed Mar 23, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lxc-gentoo
View
@@ -96,6 +96,8 @@ populate_dev() {
mknod -m 666 ${DEV}/full c 1 7
mknod -m 600 ${DEV}/initctl p
mknod -m 666 ${DEV}/ptmx c 5 2
+ mkdir -m 755 ${DEV}/net
+ mknod -m 666 ${DEV}/net/tun c 10 200
}
# custom fstab
@@ -245,6 +247,8 @@ lxc.cgroup.devices.allow = c 4:1 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 5:1 rwm
+# /dev/net/tun
+lxc.cgroup.devices.allow = c 10:200 rwm
EOF
echo "done."

0 comments on commit a3aeacf

Please sign in to comment.