selinux: add selinux_install make option
PATCH 1/1 selinux: add selinux_install make option
Hi,
I try to test -mm kernels regularly on certain machines which have older distros, or on which I'm experimenting with various things. For the sake of easily being able to test a kernel with selinux enabled, without getting "random" permission denials or obscuring important long msgs avc messages, I'm starting to use the following patch to install a dummy policy matched to the kernel.
After compiling a kernel, I do 'make selinux_policy', followed by 'su; make selinux_install'. It requires manually setting your SELINUXTYPE=dummy, and places the policy under /etc/selinux/dummy.
Since the policy is generated, adding a new permission or class (i.e. process:execmem) does not affect my boot/ltp run.
For now I'm mostly sending this out in case anyone else might find it useful. I don't plan to try to get it upstream unless I in fact hear of others using it.
thanks,
-serge