2006-05-03 16:14:31 +00:00
|
|
|
Summary: SELinux Translation Daemon
|
|
|
|
Name: mcstrans
|
2011-01-17 21:01:06 +00:00
|
|
|
Version: 0.3.2
|
2012-02-01 21:04:02 +00:00
|
|
|
Release: 3%{?dist}
|
2008-05-28 21:45:15 +00:00
|
|
|
License: GPL+
|
2006-05-03 16:14:31 +00:00
|
|
|
Group: System Environment/Daemons
|
2006-05-09 21:46:11 +00:00
|
|
|
Source: http://fedora.redhat.com/projects/%{name}-%{version}.tgz
|
2012-02-01 21:04:02 +00:00
|
|
|
Patch: mcstrans-0.3.2-writepid.patch
|
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
|
2009-02-16 20:33:30 +00:00
|
|
|
BuildRequires: libcap-devel pcre-devel libsepol-devel libsepol-static
|
|
|
|
Requires: pcre
|
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
|
2012-02-01 21:04:02 +00:00
|
|
|
%patch -p1 -b .writepid
|
2006-05-03 16:14:31 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
make clean
|
2009-02-24 15:07:31 +00:00
|
|
|
make LIBDIR="%{_libdir}" CFLAGS="-g %{optflags}" %{?_smp_mflags}
|
2006-05-03 16:14:31 +00:00
|
|
|
|
|
|
|
%install
|
2006-05-09 23:28:11 +00:00
|
|
|
rm -rf %{buildroot}
|
2009-02-16 20:33:30 +00:00
|
|
|
mkdir -p %{buildroot}/%{_lib}
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
|
|
|
mkdir -p %{buildroot}%{_usr}/share/mcstrans
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/selinux/mls/setrans.d
|
|
|
|
|
2006-05-09 23:28:11 +00:00
|
|
|
make DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install
|
|
|
|
rm -f %{buildroot}%{_sbindir}/*
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
2009-02-16 20:33:30 +00:00
|
|
|
cp -r share/* %{buildroot}%{_usr}/share/mcstrans/
|
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
|
2009-09-17 09:44:36 +00:00
|
|
|
if [ -f /var/lock/subsys/mcstrans ]; then
|
|
|
|
mv /var/lock/subsys/mcstrans /var/lock/subsys/mcstransd
|
2006-09-13 17:28:44 +00:00
|
|
|
fi
|
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
|
2009-10-16 13:52:08 +00:00
|
|
|
%{_mandir}/man8/mcstransd.8.gz
|
2011-01-17 21:01:06 +00:00
|
|
|
%{_mandir}/man8/setrans.conf.8.gz
|
2006-05-03 16:14:31 +00:00
|
|
|
/sbin/mcstransd
|
2006-05-12 14:51:19 +00:00
|
|
|
%{_sysconfdir}/rc.d/init.d/mcstrans
|
2009-02-16 20:33:30 +00:00
|
|
|
%dir %{_sysconfdir}/selinux/mls/setrans.d
|
|
|
|
|
|
|
|
%dir %{_usr}/share/mcstrans
|
|
|
|
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%dir %{_usr}/share/mcstrans/util
|
|
|
|
%dir %{_usr}/share/mcstrans/examples
|
|
|
|
%{_usr}/share/mcstrans/examples/*
|
|
|
|
|
|
|
|
%defattr(0755,root,root,0755)
|
|
|
|
%{_usr}/share/mcstrans/util/*
|
2006-05-03 16:14:31 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-02-01 21:04:02 +00:00
|
|
|
* Wed Feb 1 2012 Dan Walsh <dwalsh@redhat.com> - 0.3.2-3
|
|
|
|
- Write pid file
|
|
|
|
|
2012-01-13 09:36:12 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-08 16:23:09 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-17 21:01:06 +00:00
|
|
|
* Wed Jan 5 2011 Ted X Toth <txtoth@gmail.com> - 0.3.2-0
|
|
|
|
- Add constraints
|
|
|
|
- Add setrans.conf man page
|
|
|
|
- Fix mixed raw and translated range bug
|
|
|
|
- Moved todo comments to TODO file
|
|
|
|
|
2009-10-16 13:52:08 +00:00
|
|
|
* Thu Oct 16 2009 Dan Walsh <dwalsh@redhat.com> 0.3.1-4
|
|
|
|
- Add mcstransd man page
|
|
|
|
|
2009-09-17 09:44:36 +00:00
|
|
|
* Thu Sep 17 2009 Miroslav Grepl <mgrepl@redhat.com> 0.3.1-3
|
|
|
|
- Fix init script
|
|
|
|
|
2009-07-25 11:55:35 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-16 20:33:30 +00:00
|
|
|
* Thu Feb 5 2009 Joe Nall <joe@nall.com> 0.3.1-1
|
|
|
|
- Rewrite translations to allow individual word/category mapping
|
|
|
|
- Eamon Walsh's color mapping changes
|
|
|
|
|
2008-05-28 21:45:15 +00:00
|
|
|
* Wed May 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.2.11-2
|
|
|
|
- fix license tag
|
|
|
|
|
2008-05-08 17:17:14 +00:00
|
|
|
* Wed May 7 2008 Dan Walsh <dwalsh@redhat.com> 0.2.11-1
|
|
|
|
- More fixes from Jim Meyering
|
|
|
|
|
2008-05-07 12:44:52 +00:00
|
|
|
* Tue May 6 2008 Dan Walsh <dwalsh@redhat.com> 0.2.10-1
|
|
|
|
- More error checking on failed strdup
|
|
|
|
|
2008-05-06 19:41:09 +00:00
|
|
|
* Tue May 6 2008 Dan Walsh <dwalsh@redhat.com> 0.2.9-1
|
|
|
|
- Start mcstrans before netlabel
|
|
|
|
|
2008-04-14 21:14:18 +00:00
|
|
|
* Mon Apr 14 2008 Dan Walsh <dwalsh@redhat.com> 0.2.8-1
|
|
|
|
- Fix error handling
|
|
|
|
|
2008-02-12 13:51:48 +00:00
|
|
|
* Tue Feb 12 2008 Dan Walsh <dwalsh@redhat.com> 0.2.7-2
|
|
|
|
- Rebuild for gcc 4.3
|
|
|
|
|
2007-10-29 20:56:07 +00:00
|
|
|
* Mon Oct 30 2007 Steve Conklin <sconklin@redhat.com> - 0.2.7-1
|
|
|
|
- Folded current patches into tarball
|
|
|
|
|
2007-10-26 21:03:20 +00:00
|
|
|
* Thu Oct 25 2007 Steve Conklin <sconklin@redhat.com> - 0.2.6-3
|
|
|
|
- Fixed a compile problem with max_categories
|
|
|
|
|
2007-10-25 21:12:22 +00:00
|
|
|
* Thu Oct 25 2007 Steve Conklin <sconklin@redhat.com> - 0.2.6-2
|
|
|
|
- Fixed some init script errors
|
|
|
|
|
2007-09-13 15:44:18 +00:00
|
|
|
* Thu Sep 13 2007 Dan Walsh <dwalsh@redhat.com> 0.2.6-1
|
|
|
|
- Check for max_categories and error out
|
|
|
|
|
2007-03-01 21:09:58 +00:00
|
|
|
* Thu Mar 1 2007 Dan Walsh <dwalsh@redhat.com> 0.2.5-1
|
|
|
|
- Fix case where s0=""
|
|
|
|
|
2007-02-26 15:50:01 +00:00
|
|
|
* Mon Feb 26 2007 Dan Walsh <dwalsh@redhat.com> 0.2.4-1
|
|
|
|
- Translate range if fully specified correctly
|
|
|
|
|
2007-02-13 18:37:25 +00:00
|
|
|
* Mon Feb 12 2007 Dan Walsh <dwalsh@redhat.com> 0.2.3-1
|
2007-02-12 18:59:45 +00:00
|
|
|
- Additional fix to handle ssh root/sysadm_r/s0:c1,c2
|
|
|
|
Resolves: #224637
|
|
|
|
|
2007-02-05 20:07:54 +00:00
|
|
|
* Mon Feb 5 2007 Dan Walsh <dwalsh@redhat.com> 0.2.1-1
|
|
|
|
- Rewrite to handle MLS properly
|
2007-02-12 18:59:45 +00:00
|
|
|
Resolves: #225355
|
2007-02-05 20:07:54 +00:00
|
|
|
|
2007-01-29 23:46:47 +00:00
|
|
|
* Mon Jan 29 2007 Dan Walsh <dwalsh@redhat.com> 0.1.10-2
|
|
|
|
- Cleanup memory when complete
|
|
|
|
|
2006-12-04 14:28:27 +00:00
|
|
|
* Mon Dec 4 2006 Dan Walsh <dwalsh@redhat.com> 0.1.10-1
|
|
|
|
- Fix Memory Leak
|
|
|
|
Resolves: #218173
|
|
|
|
|
2006-09-21 21:10:36 +00:00
|
|
|
* Thu Sep 21 2006 Dan Walsh <dwalsh@redhat.com> 0.1.9-1
|
|
|
|
- Add -pie
|
|
|
|
- Fix compiler warnings
|
2006-12-04 14:28:27 +00:00
|
|
|
- Fix Memory Leak
|
|
|
|
Resolves: #218173
|
2006-09-21 21:10:36 +00:00
|
|
|
|
2006-09-13 17:28:44 +00:00
|
|
|
* Wed Sep 13 2006 Peter Jones <pjones@redhat.com> - 0.1.8-3
|
2006-09-13 15:32:33 +00:00
|
|
|
- Fix subsys locking in init script
|
|
|
|
|
2006-08-23 17:51:54 +00:00
|
|
|
* Wed Aug 23 2006 Dan Walsh <dwalsh@redhat.com> 0.1.8-1
|
|
|
|
- Only allow one version to run
|
|
|
|
|
2006-07-12 07:19:44 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
|
|
|
|
- rebuild
|
|
|
|
|
2006-06-19 20:25:05 +00:00
|
|
|
* Mon Jun 19 2006 Dan Walsh <dwalsh@redhat.com> 0.1.7-1
|
|
|
|
- Apply sgrubb patch to only call getpeercon on translations
|
|
|
|
|
2006-06-06 20:00:39 +00:00
|
|
|
* Tue Jun 6 2006 Dan Walsh <dwalsh@redhat.com> 0.1.6-1
|
|
|
|
- Exit gracefully when selinux is not enabled
|
|
|
|
|
2006-05-17 01:54:00 +00:00
|
|
|
* Mon May 15 2006 Dan Walsh <dwalsh@redhat.com> 0.1.5-1
|
|
|
|
- Fix sighup handling
|
|
|
|
|
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
|