cvsdist ea3dcf6
Summary: SELinux tools for managing policy
cvsdist ea3dcf6
Name: setools
e2429ba
Version: 2.1.2
e2429ba
Release: 1
cvsdist ea3dcf6
License: GPL
cvsdist ea3dcf6
Group: System Environment/Base
20a540e
Source: http://www.tresys.com/Downloads/selinux-tools/setools-%{version}.tar.bz2
8236498
Source1: setools.pam
8236498
Source2: apol.console
8236498
Source3: seuserx.console
8236498
Source4: seaudit.console
8236498
Source5: apol.desktop
8236498
Source6: seuserx.desktop
8236498
Source7: seaudit.desktop
20a540e
Source8: sediffx.console
20a540e
Source9: sediffx.desktop
74cefef
Source10: sepcut.console
74cefef
Source11: sepcut.desktop
8236498
cvsdist ea3dcf6
Prefix: %{_prefix}
cvsdist ea3dcf6
BuildRoot: %{_tmppath}/%{name}-buildroot
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
cvsdist ea3dcf6
utilities with enhanced security functionality designed to add mandatory access 
cvsdist ea3dcf6
controls to Linux.  The Security-enhanced Linux kernel contains new 
cvsdist ea3dcf6
architectural components originally developed to improve the security of the Flask 
cvsdist ea3dcf6
operating system. These architectural components provide general support for the 
cvsdist ea3dcf6
enforcement of many kinds of mandatory access control policies, 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. seuser: A GUI and command line user manager tool for SELinux.  This 
cvsdist ea3dcf6
is a tool that actually manages a portion of a running policy (i.e., 
cvsdist ea3dcf6
user accounts).  
cvsdist ea3dcf6
cvsdist ea3dcf6
2. seuser scripts: A set of shell scripts: seuseradd, seusermod, and 
cvsdist ea3dcf6
seuserdel.  These scripts combine the functions of the associated s* 
cvsdist ea3dcf6
commands with seuser to provide a single interface to manage users in 
cvsdist ea3dcf6
SE Linux.
cvsdist ea3dcf6
cvsdist ea3dcf6
3. libapol: The main policy.conf analysis library, which is the core 
cvsdist ea3dcf6
library for all our tools.
cvsdist ea3dcf6
cvsdist ea3dcf6
See the help files for apol, sepcut, and seuser 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}
cd2fb1e
Requires: tk >= 8.3, libglade2
cvsdist ea3dcf6
cvsdist ea3dcf6
%description gui
cvsdist ea3dcf6
Security-enhanced Linux is a patch of the Linux kernel and a number of
cvsdist ea3dcf6
utilities with enhanced security functionality designed to add mandatory access 
cvsdist ea3dcf6
controls to Linux.  The Security-enhanced Linux kernel contains new 
cvsdist ea3dcf6
architectural components originally developed to improve the security of the Flask 
cvsdist ea3dcf6
operating system. These architectural components provide general support for the 
cvsdist ea3dcf6
enforcement of many kinds of mandatory access control policies, 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
cvsdist ea3dcf6
2. sepcut: A basic GUI-based policy configuration, browsing, 
cvsdist ea3dcf6
editing, and testing tool. This tool is intended to provide a 
cvsdist ea3dcf6
complete, single user interface for viewing the source files of a 
cvsdist ea3dcf6
policy, configuring policy program modules, editing policy files, and 
cvsdist ea3dcf6
making and testing the policy.
cvsdist ea3dcf6
cvsdist ea3dcf6
3. awish: A version of the TCL/TK wish interpreter that includes the 
cvsdist ea3dcf6
setools libraries.  We use this to test our GUIs (apol and seuser 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
cvsdist ea3dcf6
See the help files for apol, sepcut, and seuser for help on using the 
cvsdist ea3dcf6
tools.
cvsdist ea3dcf6
cvsdist ea3dcf6
%prep
cvsdist ea3dcf6
%setup -q
cvsdist ea3dcf6
%patch0 -p1 -b .rhat
20a540e
	
cvsdist ea3dcf6
%build
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 36c6b02
rm -f ${RPM_BUILD_ROOT}/etc/selinux/strict/src/policy/domains/program/seuser.te
cvsdist 36c6b02
rm -f ${RPM_BUILD_ROOT}/etc/selinux/strict/src/policy/file_contexts/program/seuser.fc
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
8236498
install -D %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/apol
8236498
install -D %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/seuserx
8236498
install -D %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/seaudit
8236498
install -D %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/apol
8236498
install -D %{SOURCE3} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/seuserx
8236498
install -D %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/seaudit
74cefef
install -D %{SOURCE8} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/sediffx
74cefef
install -D %{SOURCE10} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/sediffx
8236498
install -D %{SOURCE5} ${RPM_BUILD_ROOT}%{_datadir}/applications/apol.desktop
8236498
install -D %{SOURCE6} ${RPM_BUILD_ROOT}%{_datadir}/applications/seuserx.desktop
8236498
install -D %{SOURCE7} ${RPM_BUILD_ROOT}%{_datadir}/applications/seaudit.desktop
92db4c6
install -D %{SOURCE9} ${RPM_BUILD_ROOT}%{_datadir}/applications/sediffx.desktop
74cefef
install -D %{SOURCE11} ${RPM_BUILD_ROOT}%{_datadir}/applications/sediffx.desktop
17ff598
cd $RPM_BUILD_ROOT/%{_bindir}/
8236498
ln -sf consolehelper apol 
8236498
ln -sf consolehelper seuserx
8236498
ln -sf consolehelper seaudit
1d439ed
ln -sf consolehelper sepcut
cvsdist ea3dcf6
cvsdist ea3dcf6
%clean
cvsdist ea3dcf6
rm -rf ${RPM_BUILD_ROOT}
cvsdist ea3dcf6
cvsdist ea3dcf6
%files gui
cvsdist ea3dcf6
%defattr(-,root,root)
4a6c20e
%dir /usr/share/tcl8.4/BWidget-1.4.1
8236498
/usr/share/tcl8.4/BWidget-1.4.1/*
17ff598
%{_bindir}/apol
17ff598
%{_sbindir}/apol
17ff598
%{_bindir}/seuserx
17ff598
%{_sbindir}/seuserx
17ff598
%{_bindir}/sediff
17ff598
%{_sbindir}/sediffx
17ff598
%{_bindir}/awish
17ff598
%{_bindir}/seaudit
17ff598
%{_sbindir}/seaudit
17ff598
%{_sbindir}/seaudit-report
17ff598
%{_bindir}/sepcut
17ff598
%{_sbindir}/sepcut
8236498
%{_datadir}/applications/apol.desktop
8236498
%{_datadir}/applications/seuserx.desktop
8236498
%{_datadir}/applications/seaudit.desktop
20a540e
%{_datadir}/applications/sediffx.desktop
8236498
%config %{_sysconfdir}/pam.d/apol
8236498
%config %{_sysconfdir}/pam.d/seuserx
8236498
%config %{_sysconfdir}/pam.d/seaudit
8236498
%config %{_sysconfdir}/security/console.apps/apol
8236498
%config %{_sysconfdir}/security/console.apps/seuserx
8236498
%config %{_sysconfdir}/security/console.apps/seaudit
20a540e
%config %{_sysconfdir}/security/console.apps/sediffx
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
cvsdist ea3dcf6
%files
cvsdist ea3dcf6
%defattr(-,root,root)
17ff598
%{_bindir}/seuser
17ff598
%{_bindir}/seuseradd
17ff598
%{_bindir}/seuserdel
17ff598
%{_bindir}/seusermod
17ff598
%{_bindir}/seinfo
17ff598
%{_bindir}/sesearch
4a6c20e
%dir /usr/share/setools
cvsdist a7fa5b8
/usr/share/setools/*
05d303f
%dir /usr/share/doc/setools-%{version}
cvsdist a7fa5b8
/usr/share/doc/setools-%{version}/*
cvsdist ea3dcf6
cvsdist ea3dcf6
%changelog
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