]> git.proxmox.com Git - mirror_lxc.git/blame - config/templates/archlinux.common.conf.in
Prevent write_config from corrupting container config
[mirror_lxc.git] / config / templates / archlinux.common.conf.in
CommitLineData
c194ffc1
AV
1# Based on fedora.common.conf.in
2# Console settings
3
4lxc.autodev = 1
5lxc.tty = 6
6lxc.pts = 1024
7lxc.kmsg = 0
8
9lxc.haltsignal=SIGRTMIN+4
10lxc.stopsignal=SIGRTMIN+14
11
12# Mount entries
13lxc.mount.auto = proc:mixed sys:ro
14
15# Capabilities
16# Uncomment these if you don't run anything that needs the capability, and
17# would like the container to run with less privilege.
18#
19# Dropping sys_admin disables container root from doing a lot of things
20# that could be bad like re-mounting lxc fstab entries rw for example,
21# but also disables some useful things like being able to nfs mount, and
22# things that are already namespaced with ns_capable() kernel checks, like
23# hostname(1).
24# lxc.cap.drop = sys_admin
25# lxc.cap.drop = net_raw # breaks dhcp/ping
26# lxc.cap.drop = setgid # breaks login (initgroups/setgroups)
27# lxc.cap.drop = dac_read_search # breaks login (pam unix_chkpwd)
28# lxc.cap.drop = setuid # breaks sshd,nfs statd
29# lxc.cap.drop = audit_control # breaks sshd (set_loginuid failed)
30# lxc.cap.drop = audit_write
31# lxc.cap.drop = setpcap # big big login delays in Fedora 20 systemd
32#
33lxc.cap.drop = mac_admin mac_override
34lxc.cap.drop = setfcap
35lxc.cap.drop = sys_module sys_nice sys_pacct
36lxc.cap.drop = sys_rawio sys_time
37
38# Control Group devices: all denied except those whitelisted
39lxc.cgroup.devices.deny = a
40# Allow any mknod (but not reading/writing the node)
41lxc.cgroup.devices.allow = c *:* m
42lxc.cgroup.devices.allow = b *:* m
43lxc.cgroup.devices.allow = c 1:3 rwm # /dev/null
44lxc.cgroup.devices.allow = c 1:5 rwm # /dev/zero
45lxc.cgroup.devices.allow = c 1:7 rwm # /dev/full
46lxc.cgroup.devices.allow = c 5:0 rwm # /dev/tty
47lxc.cgroup.devices.allow = c 1:8 rwm # /dev/random
48lxc.cgroup.devices.allow = c 1:9 rwm # /dev/urandom
49lxc.cgroup.devices.allow = c 136:* rwm # /dev/tty[1-6] ptys and lxc console
50lxc.cgroup.devices.allow = c 5:2 rwm # /dev/ptmx pty master