cvsdist ea3dcf6
Summary: SELinux tools for managing policy
cvsdist ea3dcf6
Name: setools
247fbd4
Version: 2.2
0863078
Release: 4
cvsdist ea3dcf6
License: GPL
cvsdist ea3dcf6
Group: System Environment/Base
0863078
URL:	http://www.tresys.com/
20a540e
Source: http://www.tresys.com/Downloads/selinux-tools/setools-%{version}.tar.bz2
8236498
Source1: setools.pam
8236498
Source2: apol.console
8236498
Source4: seaudit.console
8236498
Source5: apol.desktop
8236498
Source7: seaudit.desktop
20a540e
Source8: sediffx.console
20a540e
Source9: sediffx.desktop
8236498
cvsdist ea3dcf6
Prefix: %{_prefix}
0863078
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cd2fb1e
Requires: checkpolicy, policycoreutils, tcl >= 8.3
cd2fb1e
Buildrequires: tk-devel >= 8.3, tcl-devel >= 8.3
d937725
BuildRequires: gtk2-devel, libglade2-devel
cvsdist 825424a
BuildRequires: libselinux-devel, libxml2-devel
d937725
BuildRequires: libcap-devel
cvsdist 825424a
BuildPrereq: bison, flex, pkgconfig
cvsdist 825424a
cvsdist ea3dcf6
Patch0: setools-rhat.patch
cvsdist ea3dcf6
cvsdist ea3dcf6
%description
cvsdist ea3dcf6
Security-enhanced Linux is a patch of the Linux kernel and a number of
0863078
utilities with enhanced security functionality designed to add
0863078
mandatory access 
cvsdist ea3dcf6
controls to Linux.  The Security-enhanced Linux kernel contains new 
0863078
architectural components originally developed to improve the security
0863078
 of the Flask 
0863078
operating system. These architectural components provide general
0863078
 support for the 
0863078
enforcement of many kinds of mandatory access control policies, including
0863078
 those 
cvsdist ea3dcf6
based on the concepts of Type Enforcement, Role-based Access Control, and 
cvsdist ea3dcf6
Multi-level Security.
cvsdist ea3dcf6
cvsdist ea3dcf6
The tools and libraries in this release include:
cvsdist ea3dcf6
247fbd4
1. libapol: The main policy.conf analysis library, which is the core 
cvsdist ea3dcf6
library for all our tools.
cvsdist ea3dcf6
0864153
See the help files for apol for help on using the 
cvsdist ea3dcf6
tools.
cvsdist ea3dcf6
cvsdist ea3dcf6
%package gui
cvsdist ea3dcf6
Summary: Graphical tools for handling SETools
cvsdist ea3dcf6
Group: System Environment/Base
d937725
Requires: %{name} = %{version}-%{release}
0863078
Requires: tk >= 8.3, libglade2 > 2, usermode
cvsdist ea3dcf6
cvsdist ea3dcf6
%description gui
cvsdist ea3dcf6
Security-enhanced Linux is a patch of the Linux kernel and a number of
0863078
utilities with enhanced security functionality designed to add
0863078
 mandatory access 
cvsdist ea3dcf6
controls to Linux.  The Security-enhanced Linux kernel contains new 
0863078
architectural components originally developed to improve 
0863078
the security of the Flask 
0863078
operating system. These architectural components provide 
0863078
general support for the 
0863078
enforcement of many kinds of mandatory access control policies,
0863078
 including those 
cvsdist ea3dcf6
based on the concepts of Type Enforcement, Role-based Access Control, and 
cvsdist ea3dcf6
Multi-level Security.
cvsdist ea3dcf6
cvsdist ea3dcf6
The tools and libraries in this release include:
cvsdist ea3dcf6
cvsdist ea3dcf6
1. apol: The GUI-based policy analysis tool.
cvsdist ea3dcf6
0864153
2. awish: A version of the TCL/TK wish interpreter that includes the 
0864153
setools libraries.  We use this to test our GUIs (apol have the 
cvsdist ea3dcf6
interpreter compiled within them).  One could conceivably write one's own 
cvsdist ea3dcf6
GUI tools using TCL/TK as extended via awish.
cvsdist ea3dcf6
0864153
See the help files for apol for help on using the 
cvsdist ea3dcf6
tools.
cvsdist ea3dcf6
cvsdist ea3dcf6
%prep
cvsdist ea3dcf6
%setup -q
cvsdist ea3dcf6
%patch0 -p1 -b .rhat
0863078
cvsdist ea3dcf6
%build
0863078
make clean
cvsdist a7fa5b8
make LIBDIR=%{_libdir} all 
cvsdist ea3dcf6
cvsdist ea3dcf6
%install
cvsdist ea3dcf6
rm -rf ${RPM_BUILD_ROOT}
17ff598
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
17ff598
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
cvsdist ea3dcf6
mkdir -p $RPM_BUILD_ROOT/%_libdir
17ff598
mkdir -p $RPM_BUILD_ROOT%{_includedir}/selinux/apol
cvsdist a7fa5b8
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/setools-%{version}
17ea084
mkdir -p $RPM_BUILD_ROOT/usr/share/tcl8.4
17ff598
make DESTDIR="${RPM_BUILD_ROOT}" INSTALL_HELPDIR=$RPM_BUILD_ROOT/usr/share/doc/setools-%{version} LIBDIR=%{_libdir} install install-bwidget
cvsdist a7fa5b8
rm -f ${RPM_BUILD_ROOT}/usr/bin/findcon
cvsdist a7fa5b8
rm -f ${RPM_BUILD_ROOT}/usr/bin/replcon
17ea084
rm -f ${RPM_BUILD_ROOT}/usr/bin/searchcon
17ea084
rm -f ${RPM_BUILD_ROOT}/usr/bin/indexcon
0863078
install -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d
0863078
install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/apol
0863078
install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/seaudit
0863078
install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/sediffx
0863078
install -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps
0863078
install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/apol
0863078
install -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/seaudit
0863078
install -m 644 %{SOURCE8} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/sediffx
0863078
install -d -m 755 ${RPM_BUILD_ROOT}%{_datadir}/applications
0863078
install -m 664 %{SOURCE5} ${RPM_BUILD_ROOT}%{_datadir}/applications/apol.desktop
0863078
install -m 664 %{SOURCE7} ${RPM_BUILD_ROOT}%{_datadir}/applications/seaudit.desktop
0863078
install -m 664 %{SOURCE9} ${RPM_BUILD_ROOT}%{_datadir}/applications/sediffx.desktop
17ff598
cd $RPM_BUILD_ROOT/%{_bindir}/
8236498
ln -sf consolehelper apol 
8236498
ln -sf consolehelper seaudit
fe677e2
ln -sf consolehelper sediffx
cvsdist ea3dcf6
cvsdist ea3dcf6
%clean
cvsdist ea3dcf6
rm -rf ${RPM_BUILD_ROOT}
cvsdist ea3dcf6
cvsdist ea3dcf6
%files gui
cvsdist ea3dcf6
%defattr(-,root,root)
f52284e
%dir /usr/share/tcl8.4/BWidget-1.7.0
f52284e
/usr/share/tcl8.4/BWidget-1.7.0/*
17ff598
%{_bindir}/apol
17ff598
%{_sbindir}/apol
fe677e2
%{_bindir}/sediffx
17ff598
%{_sbindir}/sediffx
17ff598
%{_bindir}/awish
17ff598
%{_bindir}/seaudit
17ff598
%{_sbindir}/seaudit
17ff598
%{_sbindir}/seaudit-report
8236498
%{_datadir}/applications/apol.desktop
8236498
%{_datadir}/applications/seaudit.desktop
20a540e
%{_datadir}/applications/sediffx.desktop
0863078
%config(noreplace) %{_sysconfdir}/pam.d/apol
0863078
%config(noreplace) %{_sysconfdir}/pam.d/seaudit
0863078
%config(noreplace) %{_sysconfdir}/pam.d/sediffx
0863078
%config(noreplace) %{_sysconfdir}/security/console.apps/apol
0863078
%config(noreplace) %{_sysconfdir}/security/console.apps/seaudit
0863078
%config(noreplace) %{_sysconfdir}/security/console.apps/sediffx
e6d4a6d
/usr/share/doc/setools-%{version}/apol*
e6d4a6d
/usr/share/doc/setools-%{version}/seaudit_help.txt
e6d4a6d
/usr/share/doc/setools-%{version}/types_relation_help.txt
e6d4a6d
/usr/share/doc/setools-%{version}/dta_help.txt
e6d4a6d
/usr/share/doc/setools-%{version}/file_relabel_help.txt
e6d4a6d
/usr/share/doc/setools-%{version}/flow_assertion_help.txt
e6d4a6d
/usr/share/doc/setools-%{version}/iflow_help.txt
e6d4a6d
/usr/share/doc/setools-%{version}/obj_perms_help.txt
e6d4a6d
%dir /usr/share/setools
e6d4a6d
/usr/share/setools/apol.tcl
e6d4a6d
/usr/share/setools/apol_help.txt
e6d4a6d
/usr/share/setools/apol_perm_mapping
e6d4a6d
/usr/share/setools/apol_perm_mapping_ver12
e6d4a6d
/usr/share/setools/apol_perm_mapping_ver15
e6d4a6d
/usr/share/setools/apol_perm_mapping_ver16
e6d4a6d
/usr/share/setools/apol_perm_mapping_ver17
e6d4a6d
/usr/share/setools/apol_perm_mapping_ver18
e6d4a6d
/usr/share/setools/apol_perm_mapping_ver19
e6d4a6d
/usr/share/setools/apol_perm_mapping_ver20
e6d4a6d
/usr/share/setools/customize_filter_window.glade
e6d4a6d
/usr/share/setools/dot_seaudit
e6d4a6d
/usr/share/setools/dta_help.txt
e6d4a6d
/usr/share/setools/filter_window.glade
e6d4a6d
/usr/share/setools/iflow_help.txt
e6d4a6d
/usr/share/setools/multifilter_window.glade
e6d4a6d
/usr/share/setools/obj_perms_help.txt
e6d4a6d
/usr/share/setools/prefer_window.glade
e6d4a6d
/usr/share/setools/query_window.glade
e6d4a6d
/usr/share/setools/report_window.glade
e6d4a6d
/usr/share/setools/seaudit-report.conf
e6d4a6d
/usr/share/setools/seaudit-report.css
e6d4a6d
/usr/share/setools/seaudit.glade
e6d4a6d
/usr/share/setools/seaudit_help.txt
0863078
%attr(755,root,root) %dir /usr/share/setools/sechecker
0863078
%attr(755,root,root) %dir /usr/share/setools/sechecker/profiles
e6d4a6d
/usr/share/setools/sechecker/profiles/all-checks.sechecker
e6d4a6d
/usr/share/setools/sechecker/profiles/analysis-checks.sechecker
e6d4a6d
/usr/share/setools/sechecker/profiles/devel-checks.sechecker
e6d4a6d
/usr/share/setools/sediff.glade
e6d4a6d
/usr/share/setools/sediff_help.txt
20a540e
20a540e
%package devel
20a540e
Summary: Development environment for SETools
20a540e
Group: System Environment/Base
d937725
Requires: %{name} = %{version}-%{release}
20a540e
20a540e
%description devel
20a540e
Headers, static libraries and API docs for SETools.
20a540e
20a540e
%files devel
64f0e34
%defattr(-,root,root)
17ff598
%{_includedir}/setools
Florian La Roche bbf5671
%{_libdir}/lib*
cvsdist ea3dcf6
0863078
%post devel -p /sbin/ldconfig
0863078
0863078
%postun devel -p /sbin/ldconfig
0863078
cvsdist ea3dcf6
%files
cvsdist ea3dcf6
%defattr(-,root,root)
17ff598
%{_bindir}/seinfo
17ff598
%{_bindir}/sesearch
13230fb
%{_bindir}/sechecker
219bfab
%{_bindir}/sediff
05d303f
%dir /usr/share/doc/setools-%{version}
e6d4a6d
/usr/share/doc/setools-%{version}/KNOWN-BUGS
e6d4a6d
/usr/share/doc/setools-%{version}/README
cvsdist ea3dcf6
cvsdist ea3dcf6
%changelog
0863078
* Wed Dec 14 2005 Dan Walsh <dwalsh@redhat.com> 2.2-4
0863078
- Fix dessktop files
0863078
- Apply fixes from bkyoung
0863078
33f8968
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
33f8968
- rebuilt
33f8968
e6d4a6d
* Thu Nov 3 2005 Dan Walsh <dwalsh@redhat.com> 2.2-3
e6d4a6d
- Move more gui files out of base into gui 
e6d4a6d
219bfab
* Thu Nov 3 2005 Dan Walsh <dwalsh@redhat.com> 2.2-2
219bfab
- Move sediff from gui to main package
219bfab
219bfab
* Thu Nov 3 2005 Dan Walsh <dwalsh@redhat.com> 2.2-1
247fbd4
- Upgrade to upstream version
247fbd4
1905ee8
* Thu Oct 13 2005 Dan Walsh <dwalsh@redhat.com> 2.1.3-1
1905ee8
- Upgrade to upstream version
1905ee8
0196065
* Mon Oct 10 2005 Tomas Mraz <tmraz@redhat.com> 2.1.2-3
0196065
- use include instead of pam_stack in pam config
0196065
da05b91
* Thu Sep 1 2005 Dan Walsh <dwalsh@redhat.com> 2.1.2-2
da05b91
- Fix spec file
da05b91
 
e2429ba
* Thu Sep 1 2005 Dan Walsh <dwalsh@redhat.com> 2.1.2-1
e2429ba
- Upgrade to upstream version
e2429ba
 
Florian La Roche bbf5671
* Thu Aug 18 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche bbf5671
- do not package debug files into the -devel package
Florian La Roche bbf5671
cd4227e
* Wed Aug 17 2005 Jeremy Katz <katzj@redhat.com> - 2.1.1-3
7521415
- rebuild against new cairo
7521415
7b26688
* Wed May 25 2005 Dan Walsh <dwalsh@redhat.com> 2.1.1-0
7b26688
- Upgrade to upstream version
7b26688
17ff598
* Mon May 23 2005 Bill Nottingham <notting@redhat.com> 2.1.0-5
17ff598
- put libraries in the right place (also puts debuginfo in the right
17ff598
  package)
64f0e34
- add %%defattr for -devel too
17ff598
74cefef
* Thu May 12 2005 Dan Walsh <dwalsh@redhat.com> 2.1.0-4
74cefef
- Move sepcut to gui apps.
74cefef
ee838e0
* Fri May 6 2005 Dan Walsh <dwalsh@redhat.com> 2.1.0-3
ee838e0
- Fix Missing return code.
ee838e0
cd2fb1e
* Wed Apr 20 2005 Dan Walsh <dwalsh@redhat.com> 2.1.0-2
cd2fb1e
- Fix requires line
cd2fb1e
cb1af3a
* Tue Apr 19 2005 Dan Walsh <dwalsh@redhat.com> 2.1.0-1
cb1af3a
- Update to latest from tresys
cb1af3a
d937725
* Tue Apr 5 2005 Dan Walsh <dwalsh@redhat.com> 2.0.0-2
d937725
- Fix buildrequires lines in spec file
d937725
d937725
* Tue Mar 2 2005 Dan Walsh <dwalsh@redhat.com> 2.0.0-1
20a540e
- Update to latest from tresys
20a540e
3ca5890
* Mon Nov 29 2004 Dan Walsh <dwalsh@redhat.com> 1.5.1-6
3a6c60b
- add FALLBACK=true to /etc/security/console.apps/apol
3a6c60b
0a42c6c
* Wed Nov 10 2004 Dan Walsh <dwalsh@redhat.com> 1.5.1-3
0a42c6c
- Add badtcl patch from Tresys.
0a42c6c
b9fbc3b
* Mon Nov 8 2004 Dan Walsh <dwalsh@redhat.com> 1.5.1-2
b9fbc3b
- Apply malloc problem patch provided by  Sami Farin 
b9fbc3b
17ea084
* Mon Nov 1 2004 Dan Walsh <dwalsh@redhat.com> 1.5.1-1
17ea084
- Update to latest from Upstream
17ea084
83b73cf
* Wed Oct 6 2004 Dan Walsh <dwalsh@redhat.com> 1.4.1-5
83b73cf
- Update tresys patch
83b73cf
05d303f
* Mon Oct 4 2004 Dan Walsh <dwalsh@redhat.com> 1.4.1-4
4a6c20e
- Fix directory ownership
4a6c20e
cvsdist 47d492b
* Thu Jul 8 2004 Dan Walsh <dwalsh@redhat.com> 1.4.1-1
cvsdist 47d492b
- Latest from Tresys
cvsdist 47d492b
cvsdist 825424a
* Wed Jun 23 2004 Dan Walsh <dwalsh@redhat.com> 1.4-5
cvsdist 825424a
- Add build requires libselinux
cvsdist 825424a
cvsdist a560a26
* Tue Jun 22 2004 Dan Walsh <dwalsh@redhat.com> 1.4-4
cvsdist a560a26
- Add support for policy.18
cvsdist a560a26
cvsdist 35a078a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 35a078a
- rebuilt
cvsdist 35a078a
cvsdist 4db8a2f
* Thu Jun 10 2004 Dan Walsh <dwalsh@redhat.com> 1.4-2
cvsdist 4db8a2f
- Fix install locations of policy_src_dir
cvsdist 4db8a2f
cvsdist 07c5f9a
* Wed Jun 2 2004 Dan Walsh <dwalsh@redhat.com> 1.4-1
cvsdist 07c5f9a
- Update to latest from TRESYS.
cvsdist 07c5f9a
cvsdist 07c5f9a
* Tue Jun 1 2004 Dan Walsh <dwalsh@redhat.com> 1.3-3
cvsdist 36c6b02
- Make changes to work with targeted/strict policy
cvsdist 36c6b02
* Fri Apr 16 2004 Dan Walsh <dwalsh@redhat.com> 1.3-2
cvsdist 36c6b02
- Take out requirement for policy file
cvsdist 36c6b02
cvsdist a7fa5b8
* Fri Apr 16 2004 Dan Walsh <dwalsh@redhat.com> 1.3-1
cvsdist a7fa5b8
- Fix doc location
cvsdist a7fa5b8
cvsdist a7fa5b8
* Fri Apr 16 2004 Dan Walsh <dwalsh@redhat.com> 1.3-1
cvsdist a7fa5b8
- Latest from TRESYS
cvsdist a7fa5b8
cvsdist a7fa5b8
* Tue Apr 13 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-8
cvsdist a7fa5b8
- fix location of policy.conf file
cvsdist a7fa5b8
cvsdist a7fa5b8
* Tue Apr 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-7
cvsdist a7fa5b8
- Obsolete setools-devel
cvsdist a7fa5b8
* Tue Apr 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-6
cvsdist a7fa5b8
- Fix location of 
cvsdist a7fa5b8
* Tue Apr 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-5
cvsdist a7fa5b8
- Remove devel libraries
cvsdist a7fa5b8
- Fix installdir for lib64
cvsdist a7fa5b8
cvsdist a7fa5b8
* Sat Apr 3 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-4
cvsdist a7fa5b8
- Add usr_t file read to policy
cvsdist a7fa5b8
cvsdist a7fa5b8
* Thu Mar 25 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-3
cvsdist a7fa5b8
- Use tcl8.4
cvsdist a7fa5b8
cvsdist e11b7bf
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e11b7bf
- rebuilt
cvsdist e11b7bf
cvsdist e11b7bf
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e11b7bf
- rebuilt
cvsdist e11b7bf
cvsdist e11b7bf
* Fri Feb 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-1
cvsdist e11b7bf
- New patch
cvsdist e11b7bf
cvsdist e11b7bf
* Fri Feb 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2-1
cvsdist e11b7bf
- Latest upstream version
cvsdist e11b7bf
cvsdist ea3dcf6
* Tue Dec 30 2003 Dan Walsh <dwalsh@redhat.com> 1.1.1-1
cvsdist ea3dcf6
- New version from upstream
cvsdist ea3dcf6
- Remove seuser.te.  Now in policy file.
cvsdist ea3dcf6
cvsdist ea3dcf6
* Tue Dec 30 2003 Dan Walsh <dwalsh@redhat.com> 1.1-2
cvsdist ea3dcf6
- Add Defattr to devel
cvsdist ea3dcf6
- move libs to base kit
cvsdist ea3dcf6
cvsdist ea3dcf6
* Fri Dec 19 2003 Dan Walsh <dwalsh@redhat.com> 1.1-1
cvsdist ea3dcf6
- Update to latest code from tresys
cvsdist ea3dcf6
- Break into three separate packages for cmdline, devel and gui
cvsdist ea3dcf6
- Incorporate the tcl patch
cvsdist ea3dcf6
cvsdist ea3dcf6
* Mon Dec 15 2003 Jens Petersen <petersen@redhat.com> - 1.0.1-3
cvsdist ea3dcf6
- apply setools-1.0.1-tcltk.patch to build against tcl/tk 8.4
cvsdist ea3dcf6
- buildrequire tk-devel
cvsdist ea3dcf6
cvsdist ea3dcf6
* Thu Nov 20 2003 Dan Walsh <dwalsh@redhat.com> 1.0.1-2
cvsdist ea3dcf6
- Add Bwidgets to this RPM
cvsdist ea3dcf6
cvsdist ea3dcf6
* Tue Nov 4 2003 Dan Walsh <dwalsh@redhat.com> 1.0.1-1
cvsdist ea3dcf6
- Upgrade to 1.0.1
cvsdist ea3dcf6
cvsdist ea3dcf6
* Wed Oct 15 2003 Dan Walsh <dwalsh@redhat.com> 1.0-6
cvsdist ea3dcf6
- Clean up build
cvsdist ea3dcf6
cvsdist ea3dcf6
* Tue Oct 14 2003 Dan Walsh <dwalsh@redhat.com> 1.0-5
cvsdist ea3dcf6
- Update with correct seuser.te
cvsdist ea3dcf6
cvsdist ea3dcf6
* Wed Oct 1 2003 Dan Walsh <dwalsh@redhat.com> 1.0-4
cvsdist ea3dcf6
- Update with final release from Tresys
cvsdist ea3dcf6
cvsdist ea3dcf6
* Mon Jun 2 2003 Dan Walsh <dwalsh@redhat.com> 1.0-1
cvsdist ea3dcf6
- Initial version
cvsdist ea3dcf6
cvsdist ea3dcf6
cvsdist ea3dcf6
cvsdist ea3dcf6