Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


generate_selinux_policy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
generate_selinux_policy [2014/06/16 13:45] – [Generate SELinux policy] admingenerate_selinux_policy [2016/06/21 13:45] admin
Line 2: Line 2:
  
 =====Generate SELinux policy===== =====Generate SELinux policy=====
-//Tested on CentOS 6.5//+//Tested on CentOS 7, Fedora 24//
  
   * Install policycoreutils-python <code>yum install policycoreutils-python</code>   * Install policycoreutils-python <code>yum install policycoreutils-python</code>
Line 11: Line 11:
   * Follow on screen directions.   * Follow on screen directions.
  
-====Editing .te policy file==== +====If you need to edit the policy file==== 
-  * After editing the policy file, recompile the file. <code>make -f /usr/share/selinux/devel/Makefile</code> +  * Edit the .te file. 
-  * Reload the module. <code>semodule -i rsync.pp</code>+  * Recompile and load the module. For example: <code> 
 +checkmodule -M -m -o wfica.mod wfica.te 
 +semodule_package -o wfica.pp -m wfica.mod 
 +semodule -i wfica.pp</code>
generate_selinux_policy.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1