SELinux building module: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Rodolfojcj (talk | contribs) Add commands to list and remove the SELinux module for Enswitch |
Dcunningham (talk | contribs) No edit summary |
||
| Line 26: | Line 26: | ||
<pre> |
<pre> |
||
semodule -r enswitch |
semodule -r enswitch |
||
</pre> |
|||
To list the contents of the .pp file: |
|||
<pre> |
|||
/usr/libexec/selinux/hll/pp /opt/enswitch/etc/selinux/enswitch.pp |
|||
</pre> |
</pre> |
||
Latest revision as of 04:29, 29 August 2025
To check for SELinux audit entries:
audit2allow -a -b
To turn SELinux audit entries into a new SELinux module:
audit2allow -a -b -M enswitch
To compile the SELinux module for Enswitch:
cd /opt/enswitch/current/etc/selinux checkmodule -M -m -o enswitch.mod enswitch.te semodule_package -o enswitch.pp -m enswitch.mod semodule -i enswitch.pp rm enswitch.mod
To check the SELinux module for Enswitch is installed:
semodule -l | grep enswitch
To remove the installed SELinux module for Enswitch:
semodule -r enswitch
To list the contents of the .pp file:
/usr/libexec/selinux/hll/pp /opt/enswitch/etc/selinux/enswitch.pp