###########################################
This is segatex-7.900
20130203
SELinux tool.
You can analized refpolicy simply pushing buttons.
You can see files which had been produced
 in the current directory.
Works after F18.
Version qt-4.8.4.
Does not work in F15 or earlier OS.
###########################################
refpolicy version 20120725.
###########################################
Written by Shintaro Fujiwara,
using Qt-4.
you need Qt-devel to compile.
you need libselinux-devel to compile.
###########################################
# For RPM users
###########################################
You just use RPM commands and it's OK.
Skip compile and install section.
Go to Run section.
###########################################
# How to compile segatex
###########################################
$cd src
$qmake-qt4 segatex.pro
or simply 
$qmake-qt4
$vim Makefile

Add -lselinux to LIBS line.

$make
Now you get the binary "segatex" in src directory.
###########################################
# How to compile segatex_alert(Widget)
###########################################
$cd src/alert
$qmake-qt4 segatex_alert.pro
or simply
$qmake-qt4
$make
Now you get the binary "segatex_alert" in src/alert directory.
###########################################
# How to compile segatex_alert_check
###########################################
$cd src/alert_check
$cc -o etc_shadow_check etc_shadow_check.c
Now you get the binary "etc_shadow_check" in src/alert_check directory.
###########################################
# How to compile segatex_alert_audit(Widget)
###########################################
$cd src/alert_audit
$qmake-qt4 segatex_alert_audit.pro
or simply
$qmake-qt4
$make
Now you get the binary "segatex_alert_audit" in src/alert_audit directory.
###########################################
# How to compile segatex_alert_audit
###########################################
$cd src/alert_check2_prepare
$cc -o audit_log_copy audit_log_copy.c
Now you get the binary "audit_log_copy" in src/alert_check2_prepare directory.

$cd src/alert_check2
$qmake-qt4
$make
Now you get the binary "var_log_audit_audit_log_check" in src/alert_check2 directory.
###########################################
# How to install segatex
###########################################
$cd ..
$su
#./INSTALL
###########################################
# How to install segatex
###########################################
#./UNINSTALL
###########################################
# How to install segatex_alert
###########################################
$cd ..
$su -
#cd /path/to/segatex-version
#./INSTALL_SEGATEX_ALERT
###########################################
# Run segatex
###########################################
From gnome tab,

You will find segatex in System Tools tab.
So just push cockatiel logo and segatex will start.

In KDE, you will also find segatex.

From console,
(You can run segatex as non-root user.
consolehelper will pop up and authenticate you.)
At any directory you like, just type,

$segatex

No files are created where you typed.
All files are created in /usr/share/segatex.
segatex_alert will pop up when /etc/shadow has been changed.
segatex_alert_audit will pop up when /var/log/audit/audit.log has denied message.
###########segatex######################################################################
You can setenforce 0 or 1 by pushing button.
Any action will set statusBar label anew.
You can see status pushing state menu, too.
Yum install/update SELinux related RPMs, including seedit. Options are not yet implied.
You can audit2allow. 
It's a combination of audit2allow -m local -i logname -o filename.te with other options, -l -R -v -e,
and you can rename module name changing local to whatever you want.
You can see denied audit.log. 
You can generate interface macroed policy
(require brace not included yet).
You can semodule -l -i -u -r. 
Of course you can make new module.
You can install,update,remove modules.
All you have to do is just pushing button.
You can semanage -l. 
It's "boolean login user port interface fcontext translation".
But it's different order.Login and user comes first.
You can semanage login -a -m -d. 
You can semanage fcontext -a -m -d. 
You can semanage port -a -m -d. 
You can semanage translation -a -m -d. 
You can setsebool [-P] boolean value 
You can semanage permissive -a -d. 
You can generate brand-new policy module.
You can aureport.
You can ausearch.
You can add/delete Linux user.
You can grep process.
You can relabel the whole system.
You can restorcon the whole directory wherever you want.
You can ftp download.
You can analyze refpolicy.
########segatex_editor##################################################################
Push break .te button.
You will see raw .te files in raw_te_files/layer directory.
##########################
Push break .if button.
You will see raw .if files in raw_if_files/layer directory.
But interfaces which reside inside itselves are stay as is.
Refer those already broken in the file.
###########################################

Enjoy !

Copy Right Shintaro Fujiwara.
All rigths reserved.

Any co-operation or donation accepted, please contact me at,
Contributors are written down in CONTRIBUTORS.

shintaro.fujiwara@gmail.com

