2006-05-03 16:14:31 +00:00
|
|
|
Summary: SELinux Translation Daemon
|
|
|
|
Name: mcstrans
|
|
|
|
Version: 0.1.1
|
|
|
|
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-03 16:14:31 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
2006-05-09 21:46:11 +00:00
|
|
|
BuildRequires: libselinux-devel >= 1.30.3-1
|
|
|
|
Prereq: /sbin/chkconfig /sbin/service
|
|
|
|
Provides: setransd
|
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
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_lib}
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}
|
|
|
|
make DESTDIR="${RPM_BUILD_ROOT}" LIBDIR="${RPM_BUILD_ROOT}%{_libdir}" SHLIBDIR="${RPM_BUILD_ROOT}/%{_lib}" install
|
|
|
|
rm -f ${RPM_BUILD_ROOT}%{_sbindir}/*
|
|
|
|
rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.a
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%post
|
|
|
|
chkconfig --add mcstransd
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
2006-05-09 21:46:11 +00:00
|
|
|
service mcstransd stop > /dev/null 2>&1
|
|
|
|
chkconfig --del mcstransd
|
2006-05-03 16:14:31 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -ge 1 ]; then
|
2006-05-09 21:46:11 +00:00
|
|
|
service mcstransd 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
|
|
|
|
%{_sysconfdir}/init.d/mcstransd
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Mon Mar 13 2006 Dan Walsh <dwalsh@redhat.com> 0.1.1-1
|
|
|
|
- Initial Version
|
2006-05-09 21:46:11 +00:00
|
|
|
- This daemon reuses the code from libsetrans
|