Here is some more links about this task: http://wiki.debian.org/Hardening http://wiki.debian.org/HardeningWalkthrough Simon Ruderich (CCd) maybe can help with preparing patch.