December 2015
Intermediate to advanced
250 pages
4h 41m
English
We've learned how to create SELinux policies in the previous recipe. This recipe will show you how to apply your newly created SELinux policies.
In order to apply a policy, we need a policy package file (pp). This can be obtained by parsing AVC denials to audit2allow or compiling your own policy package file, as explained in the Create SELinux policies recipe.
Follow these steps:
~# semodule -i example_policy.pp ~#
~# semodule -l |grep example_policy example_policy 1.0 ~#