##############################
segatex
Copyright(C)Shintaro Fujiwara.All rights Reserved.
######### Description ###############
This is segatex-3.09,
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.
################Caution#######################################
segatex makes directory under root.
Don't delete segatex directory.
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 have 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.
######## RPM version##########
OK, you downloaded RPM version.
I will show you how to install.
###
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

###RPM version may not be released on some version... 

########### 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 F7 DVD.

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.xxx.rpm"
also, "boost_1_34_0.tar.gz"
#mv /path/boost-jam-3.1.14.tgz /usr/local/src/
#mv /path/boost_1_33_1.tar.gz /usr/local/src/
#cdb /usr/local/src
#tar -zxvf boost_1_34_0.tar.gz
#rpm -ivh boost-jam-3.1.14xxx.rpm
#cd ../boost_1_34_0
#./configure
#make install
Please be patient.  
It takes maybe an hour to compile it.
##########################################################
If it worked out fine, let's compile segatex.
#cd /path/segatex-3.09
Type
#qmake segatex.pro
#vim Makefile
Add "-lboost_regex-gcc41-mt-d -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) 
(In this version you cannot do this...)
#cp ./libboost_regex-gcc41-1_34.so.1.34.0 /usr/lib
#mkdir /root/segatex
#cp ./libboost_regex-gcc41-1_34.so.1.34.0 /root/segatex
#qmake -o Makefile segatex.pro
#vi Makefile
Add "-lselinux /root/segatex/libboost_regex-gcc41-1_34.so.1.34.0" to LIBS line like this.
LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -lqt-mt -lXext -lX11 -lm -lselinux /root/segatex/libboost_regex-gcc41-1_34.so.1.34.0
#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.
