lxc: Drop a bunch of capabilities in the template container
[matthijs/servers/tika.git] / var / lib / lxc / template / config
1 # Hostname
2 lxc.utsname = template
3
4 # Use this root filesystem
5 lxc.rootfs = /containers/template
6
7 # Log console output
8 lxc.console = /var/log/lxc/template.lxc
9
10 # The container gets a single virtual eth0 interface with a statically assigned
11 # address (assigned by lxc-start, no need for the container to assign any
12 # address itself).
13 lxc.network.type = veth
14 lxc.network.flags = up
15 lxc.network.veth.pair = lxc-template
16 lxc.network.name = eth0
17 lxc.network.link = br-lxc
18 lxc.network.ipv4 = 10.42.0.10/24
19 lxc.network.ipv4.gateway = auto
20
21 # The number of ttys available (shouldn't be less than the getty's
22 # configured in the inittab).
23 lxc.tty = 4
24
25 # Use private pts for the container
26 lxc.pts = 256
27
28 # Deny all devices, except the following
29 lxc.cgroup.devices.deny = a
30 # /dev/null
31 lxc.cgroup.devices.allow = c 1:3 rwm
32 # /dev/zero
33 lxc.cgroup.devices.allow = c 1:5 rwm
34 # /dev/console
35 lxc.cgroup.devices.allow = c 5:1 rwm
36 # /dev/tty
37 lxc.cgroup.devices.allow = c 5:0 rwm
38 # /dev/tty0
39 lxc.cgroup.devices.allow = c 4:0 rwm
40 # /dev/tty1
41 lxc.cgroup.devices.allow = c 4:1 rwm
42 # /dev/{,u}random
43 lxc.cgroup.devices.allow = c 1:9 rwm
44 lxc.cgroup.devices.allow = c 1:8 rwm
45 # /dev/pts/0 - /dev/pts/255
46 lxc.cgroup.devices.allow = c 136:* rwm
47 # /dev/ptmx
48 lxc.cgroup.devices.allow = c 5:2 rwm
49 # rtc
50 lxc.cgroup.devices.allow = c 254:0 rwm
51
52 # mounts (note that the second item in each list is the mount point, relative
53 # to the rootfs)
54 lxc.mount.entry=proc proc proc nodev,noexec,nosuid 0 0
55 lxc.mount.entry=sysfs sys sysfs defaults  0 0
56
57 # Disallow module (un)loading
58 lxc.cap.drop = sys_module
59 # Disallow doing raw io
60 lxc.cap.drop = sys_rawio
61 # Disallow changing the clock
62 lxc.cap.drop = sys_time
63 # Disallow changing network settings
64 lxc.cap.drop = net_admin
65 # Disallow changing auditing settings
66 lxc.cap.drop = audit_control
67 # Disallow various admin tasks (probably has side-effects)
68 lxc.cap.drop = sys_admin
69 # sys_boot is always dropped by lxc-start