]>
Commit | Line | Data |
---|---|---|
f6bd219e GR |
1 | # This derives from the global common config |
2 | lxc.include = @LXCTEMPLATECONFIG@/common.conf | |
3 | ||
4 | # Allow for 6 tty devices by default | |
5 | lxc.tty = 6 | |
6 | ||
7 | # Set $VIRTUALIZATION so runit doesn't try to mount filesystems or start udevd | |
8 | lxc.environment=VIRTUALIZATION=lxc | |
9 | ||
10 | # Set the halt/stop signals | |
11 | lxc.haltsignal=SIGCONT | |
12 | ||
13 | ||
14 | # Uncomment to disable creating tty devices subdirectory in /dev | |
15 | # lxc.devttydir = | |
16 | ||
17 | # Capabilities | |
18 | # Uncomment these if you don't run anything that needs the capability, and | |
19 | # would like the container to run with less privilege. | |
20 | # | |
21 | # Dropping sys_admin disables container root from doing a lot of things | |
22 | # that could be bad like re-mounting lxc fstab entries rw for example, | |
23 | # but also disables some useful things like being able to nfs mount, and | |
24 | # things that are already namespaced with ns_capable() kernel checks, like | |
25 | # hostname(1). | |
26 | # lxc.cap.drop = sys_admin | |
27 | # lxc.cap.drop = net_raw # breaks dhcp/ping | |
28 | # lxc.cap.drop = setgid # breaks login (initgroups/setgroups) | |
29 | # lxc.cap.drop = dac_read_search # breaks login (pam unix_chkpwd) | |
30 | # lxc.cap.drop = setuid # breaks sshd,nfs statd | |
31 | # lxc.cap.drop = audit_control # breaks sshd (set_loginuid failed) | |
32 | # lxc.cap.drop = audit_write | |
33 | # lxc.cap.drop = setpcap # big big login delays in Fedora 20 systemd | |
34 | # | |
35 | lxc.cap.drop = setfcap sys_nice sys_pacct sys_rawio |