X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=var%2Flib%2Flxc%2Ftemplate%2Fconfig;h=e7aca33bf2eca41c077208d7455fe770edc11961;hb=6b0278f32376f57a5ef33853d4f8f4547ddcc4c3;hp=aaaae21b6e62d177cedd9053b5a243881109f164;hpb=5bce605ad88050dd17cb07bb91c31fec3de68abd;p=matthijs%2Fservers%2Ftika.git diff --git a/var/lib/lxc/template/config b/var/lib/lxc/template/config index aaaae21..e7aca33 100644 --- a/var/lib/lxc/template/config +++ b/var/lib/lxc/template/config @@ -1,8 +1,8 @@ # Hostname -lxc.utsname = template +lxc.utsname = template.local # Use this root filesystem -lxc.rootfs = /var/lib/lxc/template/rootfs +lxc.rootfs = /containers/template # Log console output lxc.console = /var/log/lxc/template.lxc @@ -53,3 +53,18 @@ lxc.cgroup.devices.allow = c 254:0 rwm # to the rootfs) lxc.mount.entry=proc proc proc nodev,noexec,nosuid 0 0 lxc.mount.entry=sysfs sys sysfs defaults 0 0 +lxc.mount.entry=/data/users data/users none defaults,bind 0 0 + +# Disallow module (un)loading +lxc.cap.drop = sys_module +# Disallow doing raw io +lxc.cap.drop = sys_rawio +# Disallow changing the clock +lxc.cap.drop = sys_time +# Disallow changing network settings +lxc.cap.drop = net_admin +# Disallow changing auditing settings +lxc.cap.drop = audit_control +# Disallow various admin tasks (probably has side-effects) +lxc.cap.drop = sys_admin +# sys_boot is always dropped by lxc-start