Go to "Modules" "Policy modules".
Push it.
Set policy_module name:
	segatex
Set executable path:
	/usr/sbin/segatex
Push Generate policy_module button.
#Picture.writing_policy_policygeneration.png
Open files segatex.te, segatex.fc, segatex.if.
#Picture.writing_policy_open_files.png
Add line "type segatex_data_t" to segatex.te.
Add line "/usr/share/segatex(/.*)? gen_context(system_u:object_r:segatex_data_t,s0) to segatex.fc.
#Picture.writing_policy_editing_te_fc.png
Go to "Modules" "Modules"
Type segatex and push "Make this module" button.
If you can see these lines in purple area, it's ok.
###########################
configuration loaded
/usr/bin/checkmodule:  writing binary representation (version 8) to
tmp/segatex.mod
Creating targeted segatex.pp policy package
rm tmp/segatex.mod tmp/segatex.mod.fc
###########################
Push "Install this module" button.
Drink beer.
Pink area refreshes and you will find "segatex 1.0.0" line.
You succeeded installing segatex.pp.
Go to "Relabel" "restorecon".
Type /usr/bin and push "restorecon" button.
Type /usr/sbin and push "restorecon" button.
Type /root and push "restorecon" button.
Close segatex.
Do this.
#vim /var/log/audit/audit.log
#30000 dd
#shutdown -r now
Start segatex.
Push every button of segatex.





