| 1 |
# This derives from the global common config |
| 2 |
lxc.include = @LXCTEMPLATECONFIG@/common.conf |
| 3 |
|
| 4 |
# Capabilities |
| 5 |
# Uncomment these if you don't run anything that needs the capability, and |
| 6 |
# would like the container to run with less privilege. |
| 7 |
# |
| 8 |
# Dropping sys_admin disables container root from doing a lot of things |
| 9 |
# that could be bad like re-mounting lxc fstab entries rw for example, |
| 10 |
# but also disables some useful things like being able to nfs mount, and |
| 11 |
# things that are already namespaced with ns_capable() kernel checks, like |
| 12 |
# hostname(1). |
| 13 |
# lxc.cap.drop = sys_admin |
| 14 |
# lxc.cap.drop = net_raw # breaks dhcp/ping |
| 15 |
# lxc.cap.drop = setgid # breaks login (initgroups/setgroups) |
| 16 |
# lxc.cap.drop = dac_read_search # breaks login (pam unix_chkpwd) |
| 17 |
# lxc.cap.drop = setuid # breaks sshd,nfs statd |
| 18 |
# lxc.cap.drop = audit_control # breaks sshd (set_loginuid failed) |
| 19 |
# lxc.cap.drop = audit_write |
| 20 |
# lxc.cap.drop = setpcap # big big login delays in Fedora 20 systemd |
| 21 |
lxc.cap.drop = setfcap sys_nice sys_pacct sys_rawio |