diff --git a/libselinux-3.1.tar.gz b/libselinux-3.1.tar.gz deleted file mode 100644 index b826c53..0000000 --- a/libselinux-3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea5dcbb4d859e3f999c26a13c630da2f16dff9462e3cc8cb7b458ac157d112e7 -size 204703 diff --git a/libselinux-3.2.tar.gz b/libselinux-3.2.tar.gz new file mode 100644 index 0000000..715864a --- /dev/null +++ b/libselinux-3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df758ef1d9d4811051dd901ea6b029ae334ffd7c671c128beb16bce1e25ac161 +size 206380 diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes index eb762c0..e2ba3ef 100644 --- a/libselinux-bindings.changes +++ b/libselinux-bindings.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Wed Mar 17 15:17:27 UTC 2021 - Dominique Leuenberger + +- Switch to pcre2: + + Replace pcre-devel BuildRequires with pkgconfig(libpcre2-8) + + Pass USE_PCRE2=y to make. + +------------------------------------------------------------------- +Tue Mar 9 09:01:15 UTC 2021 - Johannes Segitz + +- Update to version 3.2: + * Use mmap()'ed kernel status page instead of netlink by default. + See "KERNEL STATUS PAGE" section in avc_init(3) for more details. + * New log callback levels for enforcing and policy load notices - + SELINUX_POLICYLOAD, SELINUX_SETENFORCE + * Changed userspace AVC setenforce and policy load messages to audit + format. + ------------------------------------------------------------------- Tue Jul 14 08:24:20 UTC 2020 - Johannes Segitz diff --git a/libselinux-bindings.spec b/libselinux-bindings.spec index f4662f5..95f019a 100644 --- a/libselinux-bindings.spec +++ b/libselinux-bindings.spec @@ -17,9 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define libsepol_ver 3.1 +%define libsepol_ver 3.2 Name: libselinux-bindings -Version: 3.1 +Version: 3.2 Release: 0 Summary: SELinux runtime library and simple utilities License: SUSE-Public-Domain @@ -36,11 +36,11 @@ Patch4: readv-proto.patch Patch5: python3.8-compat.patch Patch6: swig4_moduleimport.patch BuildRequires: libsepol-devel-static >= %{libsepol_ver} -BuildRequires: pcre-devel BuildRequires: python-rpm-macros BuildRequires: python3-devel BuildRequires: ruby-devel BuildRequires: swig +BuildRequires: pkgconfig(libpcre2-8) %description libselinux provides an interface to get and set process and file @@ -83,15 +83,13 @@ language. %build %define _lto_cflags %{nil} -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" -C src V=1 -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" -C src swigify V=1 -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" -C src pywrap V=1 -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" -C src rubywrap V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" swigify V=1 USE_PCRE2=y +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" pywrap V=1 USE_PCRE2=y +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" rubywrap V=1 USE_PCRE2=y %install -make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a -C src install V=1 -make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a -C src install-pywrap V=1 -make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a -C src install-rubywrap V=1 +make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a install-pywrap V=1 +make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a install-rubywrap V=1 rm -rf %{buildroot}/%{_lib} %{buildroot}%{_libdir}/libselinux.* %{buildroot}%{_libdir}/pkgconfig %files -n python3-selinux diff --git a/libselinux.changes b/libselinux.changes index c207c84..29e8ce7 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Wed Mar 17 15:13:16 UTC 2021 - Dominique Leuenberger + +- Switch to pcre2: + + Replace pcre-devel BuildRequires with pkgconfig(libpcre2-8) + + Pass USE_PCRE2=y to make. + + Replace pkgconfig(libpcre) Requires in -devel static with + pkgconfig(libpcre2-8). + +------------------------------------------------------------------- +Tue Mar 9 09:01:15 UTC 2021 - Johannes Segitz + +- Update to version 3.2: + * Use mmap()'ed kernel status page instead of netlink by default. + See "KERNEL STATUS PAGE" section in avc_init(3) for more details. + * New log callback levels for enforcing and policy load notices - + SELINUX_POLICYLOAD, SELINUX_SETENFORCE + * Changed userspace AVC setenforce and policy load messages to audit + format. + ------------------------------------------------------------------- Sat Feb 6 13:54:41 UTC 2021 - Matej Cepl diff --git a/libselinux.spec b/libselinux.spec index 02e144b..07ab65f 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -16,15 +16,15 @@ # -%define libsepol_ver 3.1 +%define libsepol_ver 3.2 Name: libselinux -Version: 3.1 +Version: 3.2 Release: 0 Summary: SELinux runtime library and utilities License: SUSE-Public-Domain Group: Development/Libraries/C and C++ URL: https://github.com/SELinuxProject/selinux/wiki/Releases -Source: https://github.com/SELinuxProject/selinux/releases/download/20200710/%{name}-%{version}.tar.gz +Source: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz Source1: selinux-ready Source2: baselibs.conf # PATCH-FIX-UPSTREAM Include for readv prototype @@ -32,8 +32,8 @@ Patch4: readv-proto.patch Patch5: skip_cycles.patch BuildRequires: fdupes BuildRequires: libsepol-devel >= %{libsepol_ver} -BuildRequires: pcre-devel BuildRequires: pkgconfig +BuildRequires: pkgconfig(libpcre2-8) %description libselinux provides an interface to get and set process and file @@ -84,7 +84,7 @@ necessary to develop your own software using libselinux. Summary: Static archives for the SELinux runtime Group: Development/Libraries/C and C++ Requires: libselinux-devel = %{version} -Requires: pkgconfig(libpcre) +Requires: pkgconfig(libpcre2-8) Requires: pkgconfig(libsepol) %description devel-static @@ -101,7 +101,7 @@ necessary to develop your own software using libselinux. %build %define _lto_cflags %{nil} -make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} -fno-semantic-interposition" +make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} -fno-semantic-interposition" USE_PCRE2=y %install mkdir -p %{buildroot}/%{_lib} diff --git a/selinux-ready b/selinux-ready index 7700339..60a53a1 100644 --- a/selinux-ready +++ b/selinux-ready @@ -206,7 +206,7 @@ check_runlevel() check_packages() { - PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol1 libsemanage1 restorecond" + PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol2 libsemanage2 restorecond" FAIL=0 for i in $PKGLST