Hello fellow Gentooists.
After a few days reading about the Gentoo Hardened Project I decided to set up a test server to apply what I'd learnt. It all worked like a charm and I configured a system intended to act as a shell server. I used the hardened-sources kernel with grsecurity activated along with PaX and the hardened toolchain. The shell server part took advantage of the chroot-ssh patch for opensshd that let's you chroot a user directly at login into a chroot I put up at /chroot. Inside that chroot the users had limited tools and binaries to avoid abuse.
I was very happy with this configuration and I found it very flexible (and secure). But then I realized a chroot is still a part of the main system (same kernel, same ABI, same API, etc.) so I started looking for alternatives and especially at Xen.
I'm not really preparded to sacrifice the hardened kernel and toolchain to get Xen compatibilty. The ideal setup would be to use a hardened system as a hypervisor and setup a hardened system as non-privileged domain too.
I've been nagging about this on #gentoo-hardened for quite a while asking whether a setup like that would be possible without heavy system modifications or ending up with a broken system.
I don't feel like I've got a good answer enough on this topic. So now I'm asking you:
Would it be possible to run a kernel inside Xen that has the hardened patches applied to it (grsecurity and PaX)?




