lxc: Better document device config for the template container.
authorMatthijs Kooijman <matthijs@stdin.nl>
Sun, 14 Aug 2011 14:19:21 +0000 (16:19 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Sun, 14 Aug 2011 14:27:43 +0000 (16:27 +0200)
This changes only comments.

var/lib/lxc/template/config

index 48899db2c7c1ede5d10e0c0bd3aa965062c0a146..829bde5dbd871e97a8b6d167e7c5152bd9a8cdfe 100644 (file)
@@ -1,19 +1,27 @@
 lxc.tty = 4
 lxc.pts = 1024
 lxc.rootfs = /var/lib/lxc/template/rootfs
+
+# Deny all devices, except the following
 lxc.cgroup.devices.deny = a
-# /dev/null and zero
+# /dev/null
 lxc.cgroup.devices.allow = c 1:3 rwm
+# /dev/zero
 lxc.cgroup.devices.allow = c 1:5 rwm
-# consoles
+# /dev/console
 lxc.cgroup.devices.allow = c 5:1 rwm
+# /dev/tty
 lxc.cgroup.devices.allow = c 5:0 rwm
+# /dev/tty0
 lxc.cgroup.devices.allow = c 4:0 rwm
+# /dev/tty1
 lxc.cgroup.devices.allow = c 4:1 rwm
 # /dev/{,u}random
 lxc.cgroup.devices.allow = c 1:9 rwm
 lxc.cgroup.devices.allow = c 1:8 rwm
+# /dev/pts/0 - /dev/pts/255
 lxc.cgroup.devices.allow = c 136:* rwm
+# /dev/ptmx
 lxc.cgroup.devices.allow = c 5:2 rwm
 # rtc
 lxc.cgroup.devices.allow = c 254:0 rwm