2004-09-09 12:15:29 +00:00
|
|
|
Summary: SELinux tools for managing policy
|
|
|
|
Name: setools
|
2005-05-25 18:56:16 +00:00
|
|
|
Version: 2.1.1
|
2005-08-18 02:49:21 +00:00
|
|
|
Release: 3
|
2004-09-09 12:15:29 +00:00
|
|
|
License: GPL
|
|
|
|
Group: System Environment/Base
|
2005-03-02 20:06:30 +00:00
|
|
|
Source: http://www.tresys.com/Downloads/selinux-tools/setools-%{version}.tar.bz2
|
2004-09-27 20:01:22 +00:00
|
|
|
Source1: setools.pam
|
|
|
|
Source2: apol.console
|
|
|
|
Source3: seuserx.console
|
|
|
|
Source4: seaudit.console
|
|
|
|
Source5: apol.desktop
|
|
|
|
Source6: seuserx.desktop
|
|
|
|
Source7: seaudit.desktop
|
2005-03-02 20:06:30 +00:00
|
|
|
Source8: sediffx.console
|
|
|
|
Source9: sediffx.desktop
|
2005-05-12 16:25:20 +00:00
|
|
|
Source10: sepcut.console
|
|
|
|
Source11: sepcut.desktop
|
2004-09-27 20:01:22 +00:00
|
|
|
|
2004-09-09 12:15:29 +00:00
|
|
|
Prefix: %{_prefix}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
2005-04-20 15:14:24 +00:00
|
|
|
Requires: checkpolicy, policycoreutils, tcl >= 8.3
|
|
|
|
Buildrequires: tk-devel >= 8.3, tcl-devel >= 8.3
|
2005-04-05 13:53:20 +00:00
|
|
|
BuildRequires: gtk2-devel, libglade2-devel
|
2004-09-09 12:16:55 +00:00
|
|
|
BuildRequires: libselinux-devel, libxml2-devel
|
2005-04-05 13:53:20 +00:00
|
|
|
BuildRequires: libcap-devel
|
2004-09-09 12:16:55 +00:00
|
|
|
BuildPrereq: bison, flex, pkgconfig
|
|
|
|
|
2004-09-09 12:15:29 +00:00
|
|
|
Patch0: setools-rhat.patch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Security-enhanced Linux is a patch of the Linux kernel and a number of
|
|
|
|
utilities with enhanced security functionality designed to add mandatory access
|
|
|
|
controls to Linux. The Security-enhanced Linux kernel contains new
|
|
|
|
architectural components originally developed to improve the security of the Flask
|
|
|
|
operating system. These architectural components provide general support for the
|
|
|
|
enforcement of many kinds of mandatory access control policies, including those
|
|
|
|
based on the concepts of Type Enforcement, Role-based Access Control, and
|
|
|
|
Multi-level Security.
|
|
|
|
|
|
|
|
The tools and libraries in this release include:
|
|
|
|
|
|
|
|
1. seuser: A GUI and command line user manager tool for SELinux. This
|
|
|
|
is a tool that actually manages a portion of a running policy (i.e.,
|
|
|
|
user accounts).
|
|
|
|
|
|
|
|
2. seuser scripts: A set of shell scripts: seuseradd, seusermod, and
|
|
|
|
seuserdel. These scripts combine the functions of the associated s*
|
|
|
|
commands with seuser to provide a single interface to manage users in
|
|
|
|
SE Linux.
|
|
|
|
|
|
|
|
3. libapol: The main policy.conf analysis library, which is the core
|
|
|
|
library for all our tools.
|
|
|
|
|
|
|
|
See the help files for apol, sepcut, and seuser for help on using the
|
|
|
|
tools.
|
|
|
|
|
|
|
|
%package gui
|
|
|
|
Summary: Graphical tools for handling SETools
|
|
|
|
Group: System Environment/Base
|
2005-04-05 13:53:20 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2005-04-20 15:14:24 +00:00
|
|
|
Requires: tk >= 8.3, libglade2
|
2004-09-09 12:15:29 +00:00
|
|
|
|
|
|
|
%description gui
|
|
|
|
Security-enhanced Linux is a patch of the Linux kernel and a number of
|
|
|
|
utilities with enhanced security functionality designed to add mandatory access
|
|
|
|
controls to Linux. The Security-enhanced Linux kernel contains new
|
|
|
|
architectural components originally developed to improve the security of the Flask
|
|
|
|
operating system. These architectural components provide general support for the
|
|
|
|
enforcement of many kinds of mandatory access control policies, including those
|
|
|
|
based on the concepts of Type Enforcement, Role-based Access Control, and
|
|
|
|
Multi-level Security.
|
|
|
|
|
|
|
|
The tools and libraries in this release include:
|
|
|
|
|
|
|
|
1. apol: The GUI-based policy analysis tool.
|
|
|
|
|
|
|
|
2. sepcut: A basic GUI-based policy configuration, browsing,
|
|
|
|
editing, and testing tool. This tool is intended to provide a
|
|
|
|
complete, single user interface for viewing the source files of a
|
|
|
|
policy, configuring policy program modules, editing policy files, and
|
|
|
|
making and testing the policy.
|
|
|
|
|
|
|
|
3. awish: A version of the TCL/TK wish interpreter that includes the
|
|
|
|
setools libraries. We use this to test our GUIs (apol and seuser have the
|
|
|
|
interpreter compiled within them). One could conceivably write one's own
|
|
|
|
GUI tools using TCL/TK as extended via awish.
|
|
|
|
|
|
|
|
See the help files for apol, sepcut, and seuser for help on using the
|
|
|
|
tools.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1 -b .rhat
|
2005-03-02 20:06:30 +00:00
|
|
|
|
2004-09-09 12:15:29 +00:00
|
|
|
%build
|
2004-09-09 12:16:23 +00:00
|
|
|
make LIBDIR=%{_libdir} all
|
2004-09-09 12:15:29 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
2005-05-23 18:59:57 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
|
2004-09-09 12:15:29 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%_libdir
|
2005-05-23 18:59:57 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_includedir}/selinux/apol
|
2004-09-09 12:16:23 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/setools-%{version}
|
2004-11-01 16:00:13 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/tcl8.4
|
2005-05-23 18:59:57 +00:00
|
|
|
make DESTDIR="${RPM_BUILD_ROOT}" INSTALL_HELPDIR=$RPM_BUILD_ROOT/usr/share/doc/setools-%{version} LIBDIR=%{_libdir} install install-bwidget
|
2004-09-09 12:16:33 +00:00
|
|
|
rm -f ${RPM_BUILD_ROOT}/etc/selinux/strict/src/policy/domains/program/seuser.te
|
|
|
|
rm -f ${RPM_BUILD_ROOT}/etc/selinux/strict/src/policy/file_contexts/program/seuser.fc
|
2004-09-09 12:16:23 +00:00
|
|
|
rm -f ${RPM_BUILD_ROOT}/usr/bin/findcon
|
|
|
|
rm -f ${RPM_BUILD_ROOT}/usr/bin/replcon
|
2004-11-01 16:00:13 +00:00
|
|
|
rm -f ${RPM_BUILD_ROOT}/usr/bin/searchcon
|
|
|
|
rm -f ${RPM_BUILD_ROOT}/usr/bin/indexcon
|
2004-09-27 20:01:22 +00:00
|
|
|
install -D %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/apol
|
|
|
|
install -D %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/seuserx
|
|
|
|
install -D %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/seaudit
|
|
|
|
install -D %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/apol
|
|
|
|
install -D %{SOURCE3} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/seuserx
|
|
|
|
install -D %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/seaudit
|
2005-05-12 16:25:20 +00:00
|
|
|
install -D %{SOURCE8} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/sediffx
|
|
|
|
install -D %{SOURCE10} ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/sediffx
|
2004-09-27 20:01:22 +00:00
|
|
|
install -D %{SOURCE5} ${RPM_BUILD_ROOT}%{_datadir}/applications/apol.desktop
|
|
|
|
install -D %{SOURCE6} ${RPM_BUILD_ROOT}%{_datadir}/applications/seuserx.desktop
|
|
|
|
install -D %{SOURCE7} ${RPM_BUILD_ROOT}%{_datadir}/applications/seaudit.desktop
|
2005-03-02 21:01:21 +00:00
|
|
|
install -D %{SOURCE9} ${RPM_BUILD_ROOT}%{_datadir}/applications/sediffx.desktop
|
2005-05-12 16:25:20 +00:00
|
|
|
install -D %{SOURCE11} ${RPM_BUILD_ROOT}%{_datadir}/applications/sediffx.desktop
|
2005-05-23 18:59:57 +00:00
|
|
|
cd $RPM_BUILD_ROOT/%{_bindir}/
|
2004-09-27 20:01:22 +00:00
|
|
|
ln -sf consolehelper apol
|
|
|
|
ln -sf consolehelper seuserx
|
|
|
|
ln -sf consolehelper seaudit
|
2005-05-12 16:48:56 +00:00
|
|
|
ln -sf consolehelper sepcut
|
2004-09-09 12:15:29 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%files gui
|
|
|
|
%defattr(-,root,root)
|
2004-10-01 16:17:09 +00:00
|
|
|
%dir /usr/share/tcl8.4/BWidget-1.4.1
|
2004-09-27 20:01:22 +00:00
|
|
|
/usr/share/tcl8.4/BWidget-1.4.1/*
|
2005-05-23 18:59:57 +00:00
|
|
|
%{_bindir}/apol
|
|
|
|
%{_sbindir}/apol
|
|
|
|
%{_bindir}/seuserx
|
|
|
|
%{_sbindir}/seuserx
|
|
|
|
%{_bindir}/sediff
|
|
|
|
%{_sbindir}/sediffx
|
|
|
|
%{_bindir}/awish
|
|
|
|
%{_bindir}/seaudit
|
|
|
|
%{_sbindir}/seaudit
|
|
|
|
%{_sbindir}/seaudit-report
|
|
|
|
%{_bindir}/sepcut
|
|
|
|
%{_sbindir}/sepcut
|
2004-09-27 20:01:22 +00:00
|
|
|
%{_datadir}/applications/apol.desktop
|
|
|
|
%{_datadir}/applications/seuserx.desktop
|
|
|
|
%{_datadir}/applications/seaudit.desktop
|
2005-03-02 20:06:30 +00:00
|
|
|
%{_datadir}/applications/sediffx.desktop
|
2004-09-27 20:01:22 +00:00
|
|
|
%config %{_sysconfdir}/pam.d/apol
|
|
|
|
%config %{_sysconfdir}/pam.d/seuserx
|
|
|
|
%config %{_sysconfdir}/pam.d/seaudit
|
|
|
|
%config %{_sysconfdir}/security/console.apps/apol
|
|
|
|
%config %{_sysconfdir}/security/console.apps/seuserx
|
|
|
|
%config %{_sysconfdir}/security/console.apps/seaudit
|
2005-03-02 20:06:30 +00:00
|
|
|
%config %{_sysconfdir}/security/console.apps/sediffx
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development environment for SETools
|
|
|
|
Group: System Environment/Base
|
2005-04-05 13:53:20 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2005-03-02 20:06:30 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Headers, static libraries and API docs for SETools.
|
|
|
|
|
|
|
|
%files devel
|
2005-05-23 19:01:39 +00:00
|
|
|
%defattr(-,root,root)
|
2005-05-23 18:59:57 +00:00
|
|
|
%{_includedir}/setools
|
2005-05-23 19:01:39 +00:00
|
|
|
%{_libdir}/*
|
2004-09-09 12:15:29 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2005-05-23 18:59:57 +00:00
|
|
|
%{_bindir}/seuser
|
|
|
|
%{_bindir}/seuseradd
|
|
|
|
%{_bindir}/seuserdel
|
|
|
|
%{_bindir}/seusermod
|
|
|
|
%{_bindir}/seinfo
|
|
|
|
%{_bindir}/sesearch
|
2004-10-01 16:17:09 +00:00
|
|
|
%dir /usr/share/setools
|
2004-09-09 12:16:23 +00:00
|
|
|
/usr/share/setools/*
|
2004-10-04 19:26:07 +00:00
|
|
|
%dir /usr/share/doc/setools-%{version}
|
2004-09-09 12:16:23 +00:00
|
|
|
/usr/share/doc/setools-%{version}/*
|
2004-09-09 12:15:29 +00:00
|
|
|
|
|
|
|
%changelog
|
2005-08-18 02:49:21 +00:00
|
|
|
* Wed Aug 17 2005 Jeremy Katz <katzj@redhat.com> - 2.1.1-3
|
2005-08-18 02:47:52 +00:00
|
|
|
- rebuild against new cairo
|
|
|
|
|
2005-05-25 18:56:16 +00:00
|
|
|
* Wed May 25 2005 Dan Walsh <dwalsh@redhat.com> 2.1.1-0
|
|
|
|
- Upgrade to upstream version
|
|
|
|
|
2005-05-23 18:59:57 +00:00
|
|
|
* Mon May 23 2005 Bill Nottingham <notting@redhat.com> 2.1.0-5
|
|
|
|
- put libraries in the right place (also puts debuginfo in the right
|
|
|
|
package)
|
2005-05-23 19:01:39 +00:00
|
|
|
- add %%defattr for -devel too
|
2005-05-23 18:59:57 +00:00
|
|
|
|
2005-05-12 16:25:20 +00:00
|
|
|
* Thu May 12 2005 Dan Walsh <dwalsh@redhat.com> 2.1.0-4
|
|
|
|
- Move sepcut to gui apps.
|
|
|
|
|
2005-05-06 12:26:00 +00:00
|
|
|
* Fri May 6 2005 Dan Walsh <dwalsh@redhat.com> 2.1.0-3
|
|
|
|
- Fix Missing return code.
|
|
|
|
|
2005-04-20 15:14:24 +00:00
|
|
|
* Wed Apr 20 2005 Dan Walsh <dwalsh@redhat.com> 2.1.0-2
|
|
|
|
- Fix requires line
|
|
|
|
|
2005-04-19 17:33:10 +00:00
|
|
|
* Tue Apr 19 2005 Dan Walsh <dwalsh@redhat.com> 2.1.0-1
|
|
|
|
- Update to latest from tresys
|
|
|
|
|
2005-04-05 13:53:20 +00:00
|
|
|
* Tue Apr 5 2005 Dan Walsh <dwalsh@redhat.com> 2.0.0-2
|
|
|
|
- Fix buildrequires lines in spec file
|
|
|
|
|
|
|
|
* Tue Mar 2 2005 Dan Walsh <dwalsh@redhat.com> 2.0.0-1
|
2005-03-02 20:06:30 +00:00
|
|
|
- Update to latest from tresys
|
|
|
|
|
2004-11-29 14:36:12 +00:00
|
|
|
* Mon Nov 29 2004 Dan Walsh <dwalsh@redhat.com> 1.5.1-6
|
2004-11-29 14:35:04 +00:00
|
|
|
- add FALLBACK=true to /etc/security/console.apps/apol
|
|
|
|
|
2004-11-10 19:53:31 +00:00
|
|
|
* Wed Nov 10 2004 Dan Walsh <dwalsh@redhat.com> 1.5.1-3
|
|
|
|
- Add badtcl patch from Tresys.
|
|
|
|
|
2004-11-08 14:13:08 +00:00
|
|
|
* Mon Nov 8 2004 Dan Walsh <dwalsh@redhat.com> 1.5.1-2
|
|
|
|
- Apply malloc problem patch provided by Sami Farin
|
|
|
|
|
2004-11-01 16:00:13 +00:00
|
|
|
* Mon Nov 1 2004 Dan Walsh <dwalsh@redhat.com> 1.5.1-1
|
|
|
|
- Update to latest from Upstream
|
|
|
|
|
2004-10-06 21:03:09 +00:00
|
|
|
* Wed Oct 6 2004 Dan Walsh <dwalsh@redhat.com> 1.4.1-5
|
|
|
|
- Update tresys patch
|
|
|
|
|
2004-10-04 19:26:07 +00:00
|
|
|
* Mon Oct 4 2004 Dan Walsh <dwalsh@redhat.com> 1.4.1-4
|
2004-10-01 16:17:09 +00:00
|
|
|
- Fix directory ownership
|
|
|
|
|
2004-09-09 12:17:03 +00:00
|
|
|
* Thu Jul 8 2004 Dan Walsh <dwalsh@redhat.com> 1.4.1-1
|
|
|
|
- Latest from Tresys
|
|
|
|
|
2004-09-09 12:16:55 +00:00
|
|
|
* Wed Jun 23 2004 Dan Walsh <dwalsh@redhat.com> 1.4-5
|
|
|
|
- Add build requires libselinux
|
|
|
|
|
2004-09-09 12:16:49 +00:00
|
|
|
* Tue Jun 22 2004 Dan Walsh <dwalsh@redhat.com> 1.4-4
|
|
|
|
- Add support for policy.18
|
|
|
|
|
2004-09-09 12:16:46 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 12:16:43 +00:00
|
|
|
* Thu Jun 10 2004 Dan Walsh <dwalsh@redhat.com> 1.4-2
|
|
|
|
- Fix install locations of policy_src_dir
|
|
|
|
|
2004-09-09 12:16:38 +00:00
|
|
|
* Wed Jun 2 2004 Dan Walsh <dwalsh@redhat.com> 1.4-1
|
|
|
|
- Update to latest from TRESYS.
|
|
|
|
|
|
|
|
* Tue Jun 1 2004 Dan Walsh <dwalsh@redhat.com> 1.3-3
|
2004-09-09 12:16:33 +00:00
|
|
|
- Make changes to work with targeted/strict policy
|
|
|
|
* Fri Apr 16 2004 Dan Walsh <dwalsh@redhat.com> 1.3-2
|
|
|
|
- Take out requirement for policy file
|
|
|
|
|
2004-09-09 12:16:23 +00:00
|
|
|
* Fri Apr 16 2004 Dan Walsh <dwalsh@redhat.com> 1.3-1
|
|
|
|
- Fix doc location
|
|
|
|
|
|
|
|
* Fri Apr 16 2004 Dan Walsh <dwalsh@redhat.com> 1.3-1
|
|
|
|
- Latest from TRESYS
|
|
|
|
|
|
|
|
* Tue Apr 13 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-8
|
|
|
|
- fix location of policy.conf file
|
|
|
|
|
|
|
|
* Tue Apr 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-7
|
|
|
|
- Obsolete setools-devel
|
|
|
|
* Tue Apr 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-6
|
|
|
|
- Fix location of
|
|
|
|
* Tue Apr 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-5
|
|
|
|
- Remove devel libraries
|
|
|
|
- Fix installdir for lib64
|
|
|
|
|
|
|
|
* Sat Apr 3 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-4
|
|
|
|
- Add usr_t file read to policy
|
|
|
|
|
|
|
|
* Thu Mar 25 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-3
|
|
|
|
- Use tcl8.4
|
|
|
|
|
2004-09-09 12:15:59 +00:00
|
|
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Feb 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-1
|
|
|
|
- New patch
|
|
|
|
|
|
|
|
* Fri Feb 6 2004 Dan Walsh <dwalsh@redhat.com> 1.2-1
|
|
|
|
- Latest upstream version
|
|
|
|
|
2004-09-09 12:15:29 +00:00
|
|
|
* Tue Dec 30 2003 Dan Walsh <dwalsh@redhat.com> 1.1.1-1
|
|
|
|
- New version from upstream
|
|
|
|
- Remove seuser.te. Now in policy file.
|
|
|
|
|
|
|
|
* Tue Dec 30 2003 Dan Walsh <dwalsh@redhat.com> 1.1-2
|
|
|
|
- Add Defattr to devel
|
|
|
|
- move libs to base kit
|
|
|
|
|
|
|
|
* Fri Dec 19 2003 Dan Walsh <dwalsh@redhat.com> 1.1-1
|
|
|
|
- Update to latest code from tresys
|
|
|
|
- Break into three separate packages for cmdline, devel and gui
|
|
|
|
- Incorporate the tcl patch
|
|
|
|
|
|
|
|
* Mon Dec 15 2003 Jens Petersen <petersen@redhat.com> - 1.0.1-3
|
|
|
|
- apply setools-1.0.1-tcltk.patch to build against tcl/tk 8.4
|
|
|
|
- buildrequire tk-devel
|
|
|
|
|
|
|
|
* Thu Nov 20 2003 Dan Walsh <dwalsh@redhat.com> 1.0.1-2
|
|
|
|
- Add Bwidgets to this RPM
|
|
|
|
|
|
|
|
* Tue Nov 4 2003 Dan Walsh <dwalsh@redhat.com> 1.0.1-1
|
|
|
|
- Upgrade to 1.0.1
|
|
|
|
|
|
|
|
* Wed Oct 15 2003 Dan Walsh <dwalsh@redhat.com> 1.0-6
|
|
|
|
- Clean up build
|
|
|
|
|
|
|
|
* Tue Oct 14 2003 Dan Walsh <dwalsh@redhat.com> 1.0-5
|
|
|
|
- Update with correct seuser.te
|
|
|
|
|
|
|
|
* Wed Oct 1 2003 Dan Walsh <dwalsh@redhat.com> 1.0-4
|
|
|
|
- Update with final release from Tresys
|
|
|
|
|
|
|
|
* Mon Jun 2 2003 Dan Walsh <dwalsh@redhat.com> 1.0-1
|
|
|
|
- Initial version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|