]> git.proxmox.com Git - mirror_lxc.git/blame - config/templates/common.conf.in
Report container exit status to monitord
[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/
4lxc.devttydir = lxc
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
13lxc.cap.drop = mac_admin mac_override sys_time sys_module
14
15# Set the pivot directory
16lxc.pivotdir = lxc_putold
17
18# Ensure hostname is changed on clone
19lxc.hook.clone = @LXCHOOKDIR@/clonehostname
20
21# CGroup whitelist
22lxc.cgroup.devices.deny = a
23## Allow any mknod (but not reading/writing the node)
24lxc.cgroup.devices.allow = c *:* m
25lxc.cgroup.devices.allow = b *:* m
26## Allow specific devices
27lxc.cgroup.devices.allow = c 1:3 rwm # /dev/null
28lxc.cgroup.devices.allow = c 1:5 rwm # /dev/zero
29lxc.cgroup.devices.allow = c 1:7 rwm # /dev/full
30lxc.cgroup.devices.allow = c 5:0 rwm # /dev/tty
31lxc.cgroup.devices.allow = c 5:1 rwm # /dev/console
32lxc.cgroup.devices.allow = c 5:2 rwm # /dev/ptmx
33lxc.cgroup.devices.allow = c 1:8 rwm # /dev/random
34lxc.cgroup.devices.allow = c 1:9 rwm # /dev/urandom
35lxc.cgroup.devices.allow = c 136:* rwm # /dev/pts/*
6e39e4cb
SG
36
37# Blacklist some syscalls which are not safe in privileged
38# containers
39lxc.seccomp = @LXCTEMPLATECONFIG@/common.seccomp