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