> aside from a few trivial things like the container spying on process id numbers on the host
Containers with own PID namespace can't spy on process IDs on the host though? Not sure what you mean here.
> and there isn't as strong W^X protection as desired
What level is desired? Bootup warnings for W^X got merged a while ago. Changes that try to include anything violating it are rejected (see bcachefs).
> Windows, in contrast, is able to provide layered security through a variety of approaches, including running the entire operating system in a virtual machine, with the host ensuring integrity of kernel memory.
What? Xen existed for years, that's not "in contrast". Secureboot and lockdown exists on Linux too. There's also per-service firecracker microvm.
> whereas AppArmor and SELinux are new security features that are patched into the kernel itself
That's very misleading. They're not new - selinux is over 2 decades old. They're also not "patched in" - LSMs have been integrated into Linux for a very long time with multiple implementations available. Selinux had multilabel security created for gov use. It's quite impressive actually.