vinelinux.common.conf 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This derives from the global common config
  2. lxc.include = /usr/share/lxc/config/common.conf
  3. # Capabilities
  4. # Uncomment these if you don't run anything that needs the capability, and
  5. # would like the container to run with less privilege.
  6. #
  7. # Dropping sys_admin disables container root from doing a lot of things
  8. # that could be bad like re-mounting lxc fstab entries rw for example,
  9. # but also disables some useful things like being able to nfs mount, and
  10. # things that are already namespaced with ns_capable() kernel checks, like
  11. # hostname(1).
  12. # lxc.cap.drop = sys_admin
  13. # lxc.cap.drop = net_raw # breaks dhcp/ping
  14. # lxc.cap.drop = setgid # breaks login (initgroups/setgroups)
  15. # lxc.cap.drop = dac_read_search # breaks login (pam unix_chkpwd)
  16. # lxc.cap.drop = setuid # breaks sshd,nfs statd
  17. # lxc.cap.drop = audit_control # breaks sshd (set_loginuid failed)
  18. # lxc.cap.drop = audit_write
  19. lxc.cap.drop = sys_nice sys_pacct sys_rawio
  20. # Default mount entries
  21. lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none bind,optional 0 0
  22. lxc.mount.entry = /sys/kernel/security sys/kernel/security none bind,optional 0 0
  23. lxc.mount.entry = /sys/fs/pstore sys/fs/pstore none bind,optional 0 0
  24. lxc.mount.entry = mqueue dev/mqueue mqueue rw,relatime,create=dir,optional 0 0
  25. # Extra cgroup device access
  26. ## rtc
  27. lxc.cgroup.devices.allow = c 254:0 rm
  28. ## tun
  29. lxc.cgroup.devices.allow = c 10:200 rwm
  30. ## hpet
  31. lxc.cgroup.devices.allow = c 10:228 rwm
  32. ## kvm
  33. lxc.cgroup.devices.allow = c 10:232 rwm
  34. ## To use loop devices, copy the following line to the container's
  35. ## configuration file (uncommented).
  36. #lxc.cgroup.devices.allow = b 7:* rwm