##############################
segatex
Copyright(C)Shintaro Fujiwara.All rights Reserved.
######## RPM version##########
OK, you downloaded RPM version.

installing segatex
#rpm -ivh segatex-version.rpm
updating segatex
#rpm -Uvh segatex-version.rpm

removing segatex
#rpm -e segatex

How to use

$su -
password:

#segatex

######## history ###############
##segatex2.01  07 Aug/06 New version Released
##segatex2.02  08 Aug/06 Bug fixed
##segatex2.03  11 Aug/06 Bug fixed
##segatex2.04  12 Aug/06 Bug fixed
##segatex2.05  13 Aug/06 Bug fixed
##segatex2.06  14 Aug/06 Bug fixed
##segatex2.07  14 Aug/06 Added functions
##segatex2.08  16 Aug/06 Added yum install/update audit2allow audit2why added role
...and finally...
##segatex2.09  21 Aug/06
Established my_policy_segatex.te's consistency 
install/remove button will install/removes my_policy_segatex.pp
##segatex2.10  23 Aug/06
Added audit to be yum install/updated.
Fixed bug for unable to edit.
Sorry! Don't use version2.09 which can not edit policy...
##segatex2.11  24 Aug/06
Fixed bug for regular expressions
on object classes and access vectors.
##segatex2.12  26 Aug/06
Fixed bugs
on interfaces,object classes and access vectors.
##segatex2.13  4 Sep/06
Fixed bugs
on interfaces and regular expressions.
##segatex2.14  6 Sep/06
Added button.
Added "semodule -b /usr/share/selinux/POLICY/base.pp"
in yum install/update button.
##segatex2.15  12 Sep/06
Added autorelabel button.
Fixed file_trans regex.
Added regex-related-files.
##segatex-3.01 29 Sep/06
Bug fix on source and target types.
File contexts tab added.
Added function to Check file_contexts
and make your own file_contexts.local.
Fixed small bug on button functions.
Designated folder at /root/segatex
Added function ls -laZ /folder.
Install script added.
Help button added.
##segatex-3.02 30 Sep/06
New refpolicy(200610) incorporated in selpaw_interface.csv.
Install script fixed.
Changed to read both /var/log/messages and /var/log/audit/audit.log
And making audit_messages.log in /root/segatex.
segatex actually reads from /root/segatex/audit_messages.log

Please use always latest i.e. 3.02 !!


Don't delete a file named "audit_log_mine_must_be_here"!
segatex loads denied log everytime Green button is clicked !
Don't be afraid.
Only new denied log added to that file.
If you lost "audit_log_mine_must_be_here",you should make it again,
by touch command.
If "audit_log_mine_must_be_here" is not present,segatex does not work
because,segatex reads log not from audit.log but from "audit_log_mine_must_be_here",
i.e. your audit log in whole-system-time.
######### Description ###############
This is segatex-3.02,
SELinux tool.
You should your audit-system on,segatex reads /var/log/audit/audit.log .
From segatex1.4 I showed macros,and here I added interfaces.
segatex can show allow sentences including interfaces in GUI.
Please be aware that segatex makes files in the folder which it exists.
I recommend you to run segatex on root folder, which has sysadm role.

########### source version ####################
OK, you downloaded source version.

Installing C++ Boost library beforehand would be recommended,
but from segatex2.15, you can also select not installing Boost library.
I will show you both ways of doing it.

And Qt is needed,which you can install from FC6 CD.

First,I show you how to install Boost library on your machine,for those
who prefer full Boost library to be installed and secondly I will show
how to run segatex not installing Boost library but linking files that
I prepared for you.
#########################################
1 First way(installing full Boost libray)

Go to
http://sourceforge.net/project/showfiles.php?group_id=7586
Download "boost-jam-3.1.13-1.i386.rpm"
also, "boost_1_33_1.tar.gz"
#mv /path/boost_1_33_1.tar.gz /usr/local/src/
#tar -zxvf boost_1_33_1.tar.gz
#rpm -ivh boost-jam-3.1.13-1.i386.rpm
#cd /usr/local/src/boost_1_33_1/tools/build/jam_src/
#./build.sh
#cp bin.linuxx86/bjam ../../../
#cd ../../../
#./bjam "-sTOOLS=gcc" install

If it worked out fine, let's compile segatex.

Type
#qmake -o Makefile segatex.pro
#vi Makefile
Add "-lboost_regex -lselinux" to LIBS line like this.
LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lboost_regex -lselinux
#make
#sh INSTALL
#segatex
########################################################################################################
2 Second way(copying regex.so and linking headers to /root/segatex) 

#cp ./libboost_regex-gcc-mt-1_33_1.so.1.33.1 /usr/lib
#mkdir /root/segatex
#cp ./libboost_regex-gcc-mt-1_33_1.so.1.33.1 /root/segatex
#qmake -o Makefile segatex.pro
#vi Makefile
Add "-lselinux /root/segatex/libboost_regex-gcc-mt-1_33_1.so.1.33.1" to LIBS line like this.
LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -lqt-mt -lXext -lX11 -lm -lselinux /root/segatex/libboost_regex-gcc-mt-1_33_1.so.1.33.1
#make
#sh INSTALL
#segatex
########################################################################################################
Enjoy !!
#################################
When making a SELinux module, you have to install checkpolicy beforehand.
Just push yum install/update button!!

Thank you for using segatex.
Any comments gratefully recieved at,
shin216@xf7.so-net.ne.jp
#################################
Thanks
Mr. Dries Verachtert (Belgium)
	For his enveavor on segatex RPM version on 2.09 and 2.11.
	He introduced me freshmeat also.

Mr. Paolo De Nictolis (Italy)
	For his unrelentless love on SecureOS and introducing my tool to people in Italy.
