]> git.proxmox.com Git - mirror_lxc.git/blob - config/templates/common.conf.in
confile: rename lxc.devttydir to lxc.tty.dir
[mirror_lxc.git] / config / templates / common.conf.in
1 # Default configuration shared by all containers
2
3 # Setup the LXC devices in /dev/lxc/
4 lxc.tty.dir = lxc
5
6 # Allow for 1024 pseudo terminals
7 lxc.pts = 1024
8
9 # Setup 4 tty devices
10 lxc.tty = 4
11
12 # Drop some harmful capabilities
13 lxc.cap.drop = mac_admin mac_override sys_time sys_module sys_rawio
14
15 # Ensure hostname is changed on clone
16 lxc.hook.clone = @LXCHOOKDIR@/clonehostname
17
18 # CGroup whitelist
19 lxc.cgroup.devices.deny = a
20 ## Allow any mknod (but not reading/writing the node)
21 lxc.cgroup.devices.allow = c *:* m
22 lxc.cgroup.devices.allow = b *:* m
23 ## Allow specific devices
24 ### /dev/null
25 lxc.cgroup.devices.allow = c 1:3 rwm
26 ### /dev/zero
27 lxc.cgroup.devices.allow = c 1:5 rwm
28 ### /dev/full
29 lxc.cgroup.devices.allow = c 1:7 rwm
30 ### /dev/tty
31 lxc.cgroup.devices.allow = c 5:0 rwm
32 ### /dev/console
33 lxc.cgroup.devices.allow = c 5:1 rwm
34 ### /dev/ptmx
35 lxc.cgroup.devices.allow = c 5:2 rwm
36 ### /dev/random
37 lxc.cgroup.devices.allow = c 1:8 rwm
38 ### /dev/urandom
39 lxc.cgroup.devices.allow = c 1:9 rwm
40 ### /dev/pts/*
41 lxc.cgroup.devices.allow = c 136:* rwm
42 ### fuse
43 lxc.cgroup.devices.allow = c 10:229 rwm
44
45 # Setup the default mounts
46 lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed
47 lxc.mount.entry = /sys/fs/fuse/connections sys/fs/fuse/connections none bind,optional 0 0
48
49 # Blacklist some syscalls which are not safe in privileged
50 # containers
51 lxc.seccomp = @LXCTEMPLATECONFIG@/common.seccomp
52
53 # Lastly, include all the configs from @LXCTEMPLATECONFIG@/common.conf.d/
54 lxc.include = @LXCTEMPLATECONFIG@/common.conf.d/