|
|
@ -1,24 +1,25 @@
|
|
|
|
Summary: SELinux Translation Daemon
|
|
|
|
Summary: SELinux Translation Daemon
|
|
|
|
Name: mcstrans
|
|
|
|
Name: mcstrans
|
|
|
|
Version: 3.5
|
|
|
|
Version: 2.9
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
License: GPL+
|
|
|
|
License: GPL+
|
|
|
|
Url: https://github.com/SELinuxProject/selinux/wiki
|
|
|
|
Url: https://github.com/SELinuxProject/selinux/wiki
|
|
|
|
Source: https://github.com/SELinuxProject/selinux/releases/download/3.5/mcstrans-3.5.tar.gz
|
|
|
|
Source: https://github.com/SELinuxProject/selinux/releases/download/20190315/mcstrans-2.9.tar.gz
|
|
|
|
Source2: secolor.conf.8
|
|
|
|
Source2: secolor.conf.8
|
|
|
|
# fedora-selinux/selinux: git format-patch -N 3.5 -- mcstrans
|
|
|
|
|
|
|
|
# i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done
|
|
|
|
# i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done
|
|
|
|
# Patch list start
|
|
|
|
Patch0001: 0001-mcstrans-Fir-RESOURCE_LEAK-and-USE_AFTER_FREE-coveri.patch
|
|
|
|
# Patch list end
|
|
|
|
Patch0002: 0002-mcstrans-Do-not-accept-incomplete-contexts.patch
|
|
|
|
|
|
|
|
Patch0003: 0003-Revert-mcstransd-select-correct-colour-range.patch
|
|
|
|
|
|
|
|
Patch0004: 0004-Fix-mcstrans-secolor-examples.patch
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: libselinux-devel >= %{version}
|
|
|
|
BuildRequires: libselinux-devel >= %{version}
|
|
|
|
BuildRequires: libcap-devel pcre2-devel libsepol-devel libsepol-static
|
|
|
|
BuildRequires: libcap-devel pcre-devel libsepol-devel libsepol-static
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: systemd
|
|
|
|
Requires: pcre2
|
|
|
|
Requires: pcre
|
|
|
|
%{?systemd_requires}
|
|
|
|
%{?systemd_requires}
|
|
|
|
Provides: setransd
|
|
|
|
Provides: setransd
|
|
|
|
Provides: libsetrans
|
|
|
|
Provides: libsetrans
|
|
|
|
|
|
|
|
Obsoletes: libsetrans
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Security-enhanced Linux is a feature of the Linux® kernel and a number
|
|
|
|
Security-enhanced Linux is a feature of the Linux® kernel and a number
|
|
|
@ -39,17 +40,15 @@ from internal representations to user defined representation.
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%set_build_flags
|
|
|
|
%set_build_flags
|
|
|
|
|
|
|
|
make LIBDIR="%{_libdir}" %{?_smp_mflags}
|
|
|
|
%make_build LIBDIR="%{_libdir}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_lib}
|
|
|
|
mkdir -p %{buildroot}/%{_lib}
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
|
|
|
mkdir -p %{buildroot}%{_usr}/share/mcstrans
|
|
|
|
mkdir -p %{buildroot}%{_usr}/share/mcstrans
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/selinux/mls/setrans.d
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/selinux/mls/setrans.d
|
|
|
|
|
|
|
|
|
|
|
|
%make_install LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" SBINDIR="%{_sbindir}"
|
|
|
|
make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" SBINDIR="%{_sbindir}" install
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
|
cp -r share/* %{buildroot}%{_usr}/share/mcstrans/
|
|
|
|
cp -r share/* %{buildroot}%{_usr}/share/mcstrans/
|
|
|
|
# Systemd
|
|
|
|
# Systemd
|
|
|
@ -58,6 +57,9 @@ ln -s %{_unitdir}/mcstrans.service %{buildroot}/%{_unitdir}/mcstransd.service
|
|
|
|
rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/mcstrans
|
|
|
|
rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/mcstrans
|
|
|
|
install -m644 %{SOURCE2} %{buildroot}%{_mandir}/man8/
|
|
|
|
install -m644 %{SOURCE2} %{buildroot}%{_mandir}/man8/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
%systemd_post mcstransd.service
|
|
|
|
%systemd_post mcstransd.service
|
|
|
|
|
|
|
|
|
|
|
@ -68,12 +70,13 @@ install -m644 %{SOURCE2} %{buildroot}%{_mandir}/man8/
|
|
|
|
%systemd_postun mcstransd.service
|
|
|
|
%systemd_postun mcstransd.service
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%{_mandir}/man8/mcs.8.gz
|
|
|
|
%{_mandir}/man8/mcs.8.gz
|
|
|
|
%{_mandir}/man8/mcstransd.8.gz
|
|
|
|
%{_mandir}/man8/mcstransd.8.gz
|
|
|
|
%{_mandir}/man5/setrans.conf.5.gz
|
|
|
|
%{_mandir}/man8/setrans.conf.8.gz
|
|
|
|
%{_mandir}/ru/man8/mcs.8.gz
|
|
|
|
%{_mandir}/ru/man8/mcs.8.gz
|
|
|
|
%{_mandir}/ru/man8/mcstransd.8.gz
|
|
|
|
%{_mandir}/ru/man8/mcstransd.8.gz
|
|
|
|
%{_mandir}/ru/man5/setrans.conf.5.gz
|
|
|
|
%{_mandir}/ru/man8/setrans.conf.8.gz
|
|
|
|
%{_mandir}/man8/secolor.conf.8.gz
|
|
|
|
%{_mandir}/man8/secolor.conf.8.gz
|
|
|
|
/usr/sbin/mcstransd
|
|
|
|
/usr/sbin/mcstransd
|
|
|
|
%{_unitdir}/mcstrans.service
|
|
|
|
%{_unitdir}/mcstrans.service
|
|
|
@ -91,98 +94,22 @@ install -m644 %{SOURCE2} %{buildroot}%{_mandir}/man8/
|
|
|
|
%{_usr}/share/mcstrans/util/*
|
|
|
|
%{_usr}/share/mcstrans/util/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Feb 23 2023 Petr Lautrbach <lautrbach@redhat.com> - 3.5-1
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2.9-2
|
|
|
|
- SELinux userspace 3.5 release
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 15 2023 Petr Lautrbach <lautrbach@redhat.com> - 3.5-0.rc3.1
|
|
|
|
|
|
|
|
- SELinux userspace 3.5-rc3 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 17 2023 Petr Lautrbach <lautrbach@redhat.com> - 3.5-0.rc2.1
|
|
|
|
|
|
|
|
- SELinux userspace 3.5-rc2 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 2 2023 Petr Lautrbach <lautrbach@redhat.com> - 3.5-0.rc1.1
|
|
|
|
|
|
|
|
- SELinux userspace 3.5-rc1 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 20 2022 Petr Lautrbach <plautrba@redhat.com> - 3.4-1
|
|
|
|
|
|
|
|
- SELinux userspace 3.4 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Dec 10 2021 Petr Lautrbach <plautrba@redhat.com> - 3.3-2
|
|
|
|
|
|
|
|
- Port to new PCRE2 from end-of-life PCRE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 22 2021 Petr Lautrbach <plautrba@redhat.com> - 3.3-1
|
|
|
|
|
|
|
|
- SELinux userspace 3.3 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 11 2021 Petr Lautrbach <plautrba@redhat.com> - 3.3-0.rc3.1
|
|
|
|
|
|
|
|
- SELinux userspace 3.3-rc3 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 29 2021 Petr Lautrbach <plautrba@redhat.com> - 3.3-0.rc2.1
|
|
|
|
|
|
|
|
- SELinux userspace 3.3-rc2 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.2-4
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 5 2021 Petr Lautrbach <plautrba@redhat.com> - 3.2-3
|
|
|
|
|
|
|
|
- Fix RESOURCE_LEAK (CWE-772)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.2-2
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Mar 9 2021 Petr Lautrbach <plautrba@redhat.com> - 3.2-1
|
|
|
|
* Fri Nov 08 2019 Vit Mojzis <vmojzis@redhat.com> - 2.9-2
|
|
|
|
- SELinux userspace 3.2 release
|
|
|
|
- Revert "mcstransd select correct colour range." (#1731451)
|
|
|
|
|
|
|
|
- Fix mcstrans secolor examples (#1731451)
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 7 2021 Petr Lautrbach <plautrba@redhat.com> - 3.2-0.rc2.1
|
|
|
|
* Fri Apr 12 2019 Petr Lautrbach <plautrba@redhat.com> - 2.9-1.2
|
|
|
|
- SELinux userspace 3.2-rc2 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-0.rc1.1.1
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 22 2021 Petr Lautrbach <plautrba@redhat.com> - 3.2-0.rc1.1
|
|
|
|
|
|
|
|
- SELinux userspace 3.2-rc1 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Tom Stellard <tstellar@redhat.com> - 3.1-3
|
|
|
|
|
|
|
|
- Use make macros
|
|
|
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 16 2020 Petr Lautrbach <plautrba@redhat.com> - 3.1-1
|
|
|
|
|
|
|
|
- SELinux userspace 3.1 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Dec 6 2019 Petr Lautrbach <plautrba@redhat.com> - 3.0-1
|
|
|
|
|
|
|
|
- SELinux userspace 3.0 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 11 2019 Petr Lautrbach <plautrba@redhat.com> - 3.0-0.rc1.1
|
|
|
|
|
|
|
|
- SELinux userspace 3.0-rc1 release candidate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Mar 19 2019 Petr Lautrbach <plautrba@redhat.com> - 2.9-1
|
|
|
|
|
|
|
|
- SELinux userspace 2.9 release
|
|
|
|
- SELinux userspace 2.9 release
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 11 2019 Petr Lautrbach <plautrba@redhat.com> - 2.9-0.rc2.1
|
|
|
|
* Sun Dec 16 2018 Petr Lautrbach <plautrba@redhat.com> - 2.8-2
|
|
|
|
- SELinux userspace 2.9-rc2 release
|
|
|
|
- Fix RESOURCE_LEAK and USE_AFTER_FREE coverity scan defects
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-0.rc1.1.1
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 30 2019 Petr Lautrbach <plautrba@redhat.com> - 2.9-0.rc1.1
|
|
|
|
|
|
|
|
- Update to mcstrans-2.9-rc1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 2 2018 Petr Lautrbach <plautrba@redhat.com> - 2.8-1
|
|
|
|
* Tue Oct 2 2018 Petr Lautrbach <plautrba@redhat.com> - 2.8-1
|
|
|
|
- Update to mcstrans-2.8
|
|
|
|
- Update to mcstrans-2.8
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-13
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-12
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-11
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|