|
|
@ -1,20 +1,16 @@
|
|
|
|
%define libselinuxver 3.5-1
|
|
|
|
%define libselinuxver 2.9-1
|
|
|
|
%define libsepolver 3.5-1
|
|
|
|
%define libsepolver 2.9-1
|
|
|
|
|
|
|
|
|
|
|
|
Summary: SELinux policy compiler
|
|
|
|
Summary: SELinux policy compiler
|
|
|
|
Name: checkpolicy
|
|
|
|
Name: checkpolicy
|
|
|
|
Version: 3.5
|
|
|
|
Version: 2.9
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
License: GPLv2
|
|
|
|
License: GPLv2
|
|
|
|
Source0: https://github.com/SELinuxProject/selinux/releases/download/3.5/checkpolicy-3.5.tar.gz
|
|
|
|
Source: https://github.com/SELinuxProject/selinux/releases/download/20190315/checkpolicy-2.9.tar.gz
|
|
|
|
# $ git clone https://github.com/fedora-selinux/selinux.git
|
|
|
|
# git format-patch 20190315 -- checkpolicy
|
|
|
|
# $ cd selinux
|
|
|
|
# i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done
|
|
|
|
# $ git format-patch -N 3.5 -- checkpolicy
|
|
|
|
Conflicts: selinux-policy-base < 3.13.1-138
|
|
|
|
# $ i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done
|
|
|
|
|
|
|
|
# Patch list start
|
|
|
|
|
|
|
|
# Patch list end
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: byacc bison flex flex-static libsepol-static >= %{libsepolver} libselinux-devel >= %{libselinuxver}
|
|
|
|
BuildRequires: byacc bison flex flex-static libsepol-static >= %{libsepolver} libselinux-devel >= %{libselinuxver}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@ -32,25 +28,24 @@ This package contains checkpolicy, the SELinux policy compiler.
|
|
|
|
Only required for building policies.
|
|
|
|
Only required for building policies.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p 2 -n checkpolicy-%{version}
|
|
|
|
%autosetup -p 1 -n checkpolicy-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%set_build_flags
|
|
|
|
%set_build_flags
|
|
|
|
|
|
|
|
|
|
|
|
%make_build LIBDIR="%{_libdir}"
|
|
|
|
make LIBDIR="%{_libdir}"
|
|
|
|
cd test
|
|
|
|
cd test
|
|
|
|
%make_build LIBDIR="%{_libdir}"
|
|
|
|
make LIBDIR="%{_libdir}"
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
%make_install LIBDIR="%{_libdir}"
|
|
|
|
make LIBDIR="%{_libdir}" DESTDIR="${RPM_BUILD_ROOT}" install
|
|
|
|
install test/dismod ${RPM_BUILD_ROOT}%{_bindir}/sedismod
|
|
|
|
install test/dismod ${RPM_BUILD_ROOT}%{_bindir}/sedismod
|
|
|
|
install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol
|
|
|
|
install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license LICENSE
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/checkpolicy
|
|
|
|
%{_bindir}/checkpolicy
|
|
|
|
%{_bindir}/checkmodule
|
|
|
|
%{_bindir}/checkmodule
|
|
|
|
%{_mandir}/man8/checkpolicy.8.gz
|
|
|
|
%{_mandir}/man8/checkpolicy.8.gz
|
|
|
@ -61,100 +56,11 @@ install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol
|
|
|
|
%{_bindir}/sedispol
|
|
|
|
%{_bindir}/sedispol
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Feb 23 2023 Petr Lautrbach <lautrbach@redhat.com> - 3.5-1
|
|
|
|
* Mon Mar 25 2019 Petr Lautrbach <plautrba@redhat.com> - 2.9-1
|
|
|
|
- SELinux userspace 3.5 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 28 2021 Petr Lautrbach <plautrba@redhat.com> - 3.2-3
|
|
|
|
|
|
|
|
- Rebase on upstream commit 32611aea6543
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 3.2-2
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 8 2021 Petr Lautrbach <plautrba@redhat.com> - 3.2-1
|
|
|
|
|
|
|
|
- SELinux userspace 3.2 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 5 2021 Petr Lautrbach <plautrba@redhat.com> - 3.2-0.rc2.1
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 21 2021 Petr Lautrbach <plautrba@redhat.com> - 3.2-0.rc1.1
|
|
|
|
|
|
|
|
- SELinux userspace 3.2-rc1 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Nov 1 2020 Petr Lautrbach <plautrba@redhat.com> - 3.1-4
|
|
|
|
|
|
|
|
- Fix signed overflow caused by using (1 << 31) - 1
|
|
|
|
|
|
|
|
- Optimize storage of filename transitions
|
|
|
|
|
|
|
|
- Rebuild with libsepol.so.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 3.1-2
|
|
|
|
|
|
|
|
- Use make macros
|
|
|
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Petr Lautrbach <plautrba@redhat.com> - 3.1-1
|
|
|
|
|
|
|
|
- SELinux userspace 3.1 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Petr Lautrbach <plautrba@redhat.com> - 3.0-3
|
|
|
|
|
|
|
|
- Fix -fno-common issues discovered by GCC 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 18 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
|
|
|
|
- destroy the class datum if it fails to initialize
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-0.rc1.1.1
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 25 2019 Petr Lautrbach <plautrba@redhat.com> - 2.9-0.rc1.1
|
|
|
|
|
|
|
|
- SELinux userspace 2.9-rc1 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 21 2019 Petr Lautrbach <plautrba@redhat.com> - 2.8-3
|
|
|
|
|
|
|
|
- Check the result value of hashtable_search
|
|
|
|
|
|
|
|
- Destroy the class datum if it fails to initialize
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 25 2018 Petr Lautrbach <plautrba@redhat.com> - 2.8-1
|
|
|
|
* Fri May 25 2018 Petr Lautrbach <plautrba@redhat.com> - 2.8-1
|
|
|
|
- SELinux userspace 2.8 release
|
|
|
|
- SELinux userspace 2.8 release
|
|
|
|