2006-05-03 16:14:31 +00:00
|
|
|
Summary: SELinux Translation Daemon
|
|
|
|
Name: mcstrans
|
2006-05-15 13:39:07 +00:00
|
|
|
Version: 0.1.4
|
2006-05-03 16:14:31 +00:00
|
|
|
Release: 1
|
|
|
|
License: GPL
|
|
|
|
Group: System Environment/Daemons
|
2006-05-09 21:46:11 +00:00
|
|
|
Source: http://fedora.redhat.com/projects/%{name}-%{version}.tgz
|
2006-05-10 20:08:34 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2006-05-09 21:46:11 +00:00
|
|
|
BuildRequires: libselinux-devel >= 1.30.3-1
|
2006-05-10 20:08:34 +00:00
|
|
|
Requires(pre): /sbin/chkconfig /sbin/service
|
|
|
|
Requires(post):/sbin/chkconfig /sbin/service
|
2006-05-09 21:46:11 +00:00
|
|
|
Provides: setransd
|
2006-05-10 20:08:34 +00:00
|
|
|
Provides: libsetrans
|
2006-05-03 16:14:31 +00:00
|
|
|
Obsoletes: libsetrans
|
|
|
|
|
|
|
|
%description
|
|
|
|
Security-enhanced Linux is a feature 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.
|
|
|
|
|
|
|
|
mcstrans provides an translation daemon to translate SELinux categories
|
|
|
|
from internal representations to user defined representation.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
make clean
|
|
|
|
make CFLAGS="-g %{optflags}"
|
|
|
|
|
|
|
|
%install
|
2006-05-09 23:28:11 +00:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/%{_lib}
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
|
|
|
make DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install
|
|
|
|
rm -f %{buildroot}%{_sbindir}/*
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
2006-05-03 16:14:31 +00:00
|
|
|
|
|
|
|
%clean
|
2006-05-09 23:28:11 +00:00
|
|
|
rm -rf %{buildroot}
|
2006-05-03 16:14:31 +00:00
|
|
|
|
|
|
|
%post
|
2006-05-10 23:25:14 +00:00
|
|
|
chkconfig --add mcstrans
|
2006-05-03 16:14:31 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
2006-05-10 20:08:34 +00:00
|
|
|
service mcstrans stop > /dev/null 2>&1
|
2006-05-10 23:25:14 +00:00
|
|
|
chkconfig --del mcstrans
|
2006-05-03 16:14:31 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -ge 1 ]; then
|
2006-05-10 20:08:34 +00:00
|
|
|
service mcstrans condrestart > /dev/null 2>&1 || :
|
2006-05-03 16:14:31 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%{_mandir}/man8/mcs.8.gz
|
|
|
|
/sbin/mcstransd
|
2006-05-12 14:51:19 +00:00
|
|
|
%{_sysconfdir}/rc.d/init.d/mcstrans
|
2006-05-03 16:14:31 +00:00
|
|
|
|
|
|
|
%changelog
|
2006-05-15 13:39:07 +00:00
|
|
|
* Mon May 15 2006 Dan Walsh <dwalsh@redhat.com> 0.1.4-1
|
|
|
|
- Add patch from sgrubb
|
|
|
|
- Fix 64 bit size problems
|
|
|
|
- Increase the open file limit
|
|
|
|
- Make sure maximum size is not exceeded
|
|
|
|
|
2006-05-12 14:21:38 +00:00
|
|
|
* Fri May 12 2006 Dan Walsh <dwalsh@redhat.com> 0.1.3-1
|
|
|
|
- Move initscripts to /etc/rc.d/init.d
|
|
|
|
|
2006-05-12 03:18:10 +00:00
|
|
|
* Thu May 11 2006 Dan Walsh <dwalsh@redhat.com> 0.1.2-1
|
2006-05-12 14:21:38 +00:00
|
|
|
- Drop Privs
|
2006-05-12 03:18:10 +00:00
|
|
|
|
|
|
|
* Mon May 8 2006 Dan Walsh <dwalsh@redhat.com> 0.1.1-1
|
2006-05-03 16:14:31 +00:00
|
|
|
- Initial Version
|
2006-05-09 21:46:11 +00:00
|
|
|
- This daemon reuses the code from libsetrans
|