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