Skip to content
Browse files

Merge pull request #14 from lucapost/master

/dev/net/tun support (thanks!)
  • Loading branch information...
2 parents 2ab7ddb + a3aeacf commit 508e2ee4cb455a04531333186eb59e0c0cce91a5 @globalcitizen committed Mar 31, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lxc-gentoo
View
4 lxc-gentoo
@@ -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 508e2ee

Please sign in to comment.
Something went wrong with that request. Please try again.