204 lines
6.3 KiB
RPMSpec
204 lines
6.3 KiB
RPMSpec
Summary: SELinux tools for managing policy
|
|
Name: setools
|
|
Version: 1.3.1
|
|
Release: 3
|
|
License: GPL
|
|
Group: System Environment/Base
|
|
Source: http://www.tresys.com/Downloads/selinux-tools/setools-%{version}.tgz
|
|
Prefix: %{_prefix}
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
|
Requires: checkpolicy, policycoreutils
|
|
Buildrequires: tk-devel tcl-devel
|
|
Patch0: setools-rhat.patch
|
|
Obsoletes: setools-devel
|
|
|
|
%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
|
|
Requires: %name
|
|
|
|
#%package devel
|
|
#Summary: Libraries used for manipulation of policy by SETools
|
|
#Group: System Environment/Base
|
|
#Requires: %name
|
|
|
|
#%description devel
|
|
#setools libraries used for manipulation and investigation of policy.
|
|
|
|
%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
|
|
|
|
%build
|
|
make LIBDIR=%{_libdir} all
|
|
|
|
%install
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
mkdir -p $RPM_BUILD_ROOT/%_bindir
|
|
mkdir -p $RPM_BUILD_ROOT/%_libdir
|
|
mkdir -p $RPM_BUILD_ROOT/usr/include/selinux/apol
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/setools-%{version}
|
|
make DESTDIR="${RPM_BUILD_ROOT}" INSTALL_HELPDIR=$RPM_BUILD_ROOT/usr/share/doc/setools-%{version} install
|
|
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
|
|
rm -f ${RPM_BUILD_ROOT}/usr/bin/findcon
|
|
rm -f ${RPM_BUILD_ROOT}/usr/bin/replcon
|
|
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
%files gui
|
|
%defattr(-,root,root)
|
|
%_bindir/apol
|
|
%_bindir/seuserx
|
|
%_bindir/awish
|
|
%_bindir/seaudit
|
|
/usr/share/tcl8.4/BWidget-1.4.1/*
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%_bindir/seuser
|
|
%_bindir/seuseradd
|
|
%_bindir/seuserdel
|
|
%_bindir/seusermod
|
|
%_bindir/sepcut
|
|
%_bindir/seinfo
|
|
%_bindir/sesearch
|
|
/usr/share/setools/*
|
|
/usr/share/doc/setools-%{version}/*
|
|
|
|
%changelog
|
|
* Fri Apr 16 2004 Dan Walsh <dwalsh@redhat.com> 1.3-3
|
|
- 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
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|