5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber# This derives from the global common config
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graberlxc.include = @LXCTEMPLATECONFIG@/common.conf
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# Uncomment these if you don't run anything that needs the capability, and
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# would like the container to run with less privilege.
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# Dropping sys_admin disables container root from doing a lot of things
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# that could be bad like re-mounting lxc fstab entries rw for example,
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# but also disables some useful things like being able to nfs mount, and
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# things that are already namespaced with ns_capable() kernel checks, like
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# lxc.cap.drop = net_raw # breaks dhcp/ping
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# lxc.cap.drop = setgid # breaks login (initgroups/setgroups)
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# lxc.cap.drop = dac_read_search # breaks login (pam unix_chkpwd)
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# lxc.cap.drop = setuid # breaks sshd,nfs statd
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# lxc.cap.drop = audit_control # breaks sshd (set_loginuid failed)
41cf1ac30de569888c70b1f1b40d29993950ff2eMichael H. Warfield# lxc.cap.drop = setpcap # big big login delays in Fedora 20 systemd
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graberlxc.cap.drop = sys_nice sys_pacct sys_rawio