Skip to content

Commit

Permalink
added /dev/net/tun
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapost committed Mar 23, 2012
1 parent 2ab7ddb commit a3aeacf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lxc-gentoo
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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."
Expand Down

0 comments on commit a3aeacf

Please sign in to comment.