> Kernel code is mapped read only
What part of the system makes sure that read-only kernel code stays read-only? Is it hardware or the hypervisor?
Another question. Is there any chance that you missed something and there's a way to get privilleged access without actually modifying your uid, bumping your capabilities or modifying kernel code?