From 9bb4d30da67b981f2be5a0b8c5842e7c4bbb5255 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Thu, 19 May 2022 13:58:46 +0200 Subject: [PATCH] SELinux userspace 3.4 release Resolves: rhbz#2079276 --- .gitignore | 1 + libsepol.spec | 32 ++++++++++++++++++++++++-------- sources | 2 +- 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 6fd3fda..579e635 100644 --- a/.gitignore +++ b/.gitignore @@ -183,3 +183,4 @@ libsepol-2.0.41.tgz /libsepol-3.3-rc2.tar.gz /libsepol-3.3-rc3.tar.gz /libsepol-3.3.tar.gz +/libsepol-3.4.tar.gz diff --git a/libsepol.spec b/libsepol.spec index 750b38f..ddc3113 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -1,13 +1,13 @@ Summary: SELinux binary policy manipulation library Name: libsepol -Version: 3.3 -Release: 2%{?dist} +Version: 3.4 +Release: 1%{?dist} License: LGPLv2+ -Source0: https://github.com/SELinuxProject/selinux/releases/download/3.3/libsepol-3.3.tar.gz +Source0: https://github.com/SELinuxProject/selinux/releases/download/3.4/libsepol-3.4.tar.gz URL: https://github.com/SELinuxProject/selinux/wiki # $ git clone https://github.com/fedora-selinux/selinux.git # $ cd selinux -# $ git format-patch -N libsepol-3.3 -- libsepol +# $ git format-patch -N libsepol-3.4 -- libsepol # $ i=1; for j in 0*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done # Patch list start # Patch list end @@ -48,6 +48,13 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release} The libsepol-static package contains the static libraries and header files needed for developing applications that manipulate binary policies. +%package utils +Summary: SELinux libsepol utilities +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description utils +The libsepol-utils package contains the utilities + %prep %autosetup -p 2 -n libsepol-%{version} @@ -68,10 +75,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man3 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8 %make_install LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" -rm -f ${RPM_BUILD_ROOT}%{_bindir}/genpolbools -rm -f ${RPM_BUILD_ROOT}%{_bindir}/genpolusers -rm -f ${RPM_BUILD_ROOT}%{_bindir}/chkcon -rm -rf ${RPM_BUILD_ROOT}%{_mandir}/man8 +rm -rf ${RPM_BUILD_ROOT}%{_mandir}/man8/gen* rm -rf ${RPM_BUILD_ROOT}%{_mandir}/ru/man8 %files static @@ -92,7 +96,19 @@ rm -rf ${RPM_BUILD_ROOT}%{_mandir}/ru/man8 %license COPYING %{_libdir}/libsepol.so.2 +%files utils +%{_bindir}/chkcon +%{_bindir}/sepol_check_access +%{_bindir}/sepol_compute_av +%{_bindir}/sepol_compute_member +%{_bindir}/sepol_compute_relabel +%{_bindir}/sepol_validate_transition +%{_mandir}/man8/chkcon.8.gz + %changelog +* Thu May 19 2022 Petr Lautrbach - 3.4-1 +- SELinux userspace 3.4 release + * Thu Nov 11 2021 Petr Lautrbach - 3.3-2 - Use correct libdir in libsepol.pc (#2018492) diff --git a/sources b/sources index 2c0a88d..b7769cb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libsepol-3.3.tar.gz) = fb6bb69f8e43a911a1a9cbd791593215386e93cb9292e003f5d8efe6e86e0ce5d0287e95d52fe2fbce518a618beaf9b1135aea0d04eaebcdbd8c6d07ee67b500 +SHA512 (libsepol-3.4.tar.gz) = 5e47e6ac626f2bfc10a9f2f24c2e66c4d7f291ca778ebd81c7d565326e036e821d3eb92e5d7540517b1c715466232a7d7da895ab48811d037ad92d423ed934b6