From 111c53ca0aba45128685792b032d6298e12f6065e8898d8b4671015523b7776c Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 12 Mar 2021 07:59:15 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=88 --- baselibs.conf | 2 +- libsemanage-3.1.tar.gz | 3 --- libsemanage-3.2.tar.gz | 3 +++ libsemanage.changes | 9 +++++++++ libsemanage.spec | 20 +++++++++++--------- python-semanage.changes | 9 +++++++++ python-semanage.spec | 12 +++++++----- 7 files changed, 40 insertions(+), 18 deletions(-) delete mode 100644 libsemanage-3.1.tar.gz create mode 100644 libsemanage-3.2.tar.gz diff --git a/baselibs.conf b/baselibs.conf index 7dc14f9..f02cd37 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -libsemanage1 +libsemanage2 diff --git a/libsemanage-3.1.tar.gz b/libsemanage-3.1.tar.gz deleted file mode 100644 index 005add5..0000000 --- a/libsemanage-3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:22d6c75526e40d1781c30bcf29abf97171bdfe6780923f11c8e1c76a75a21ff8 -size 179601 diff --git a/libsemanage-3.2.tar.gz b/libsemanage-3.2.tar.gz new file mode 100644 index 0000000..a96daf5 --- /dev/null +++ b/libsemanage-3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d722a55ca4fe2d4e2b30527720db657e6238b28079e69e2e4affeb8e733ee511 +size 178839 diff --git a/libsemanage.changes b/libsemanage.changes index 7000190..c598540 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Mar 9 09:09:18 UTC 2021 - Johannes Segitz + +- Update to version 3.2 + * dropped old and deprecated symbols and functions + libsemanage version was bumped to libsemanage.so.2 + * libsemanage tries to sync data to prevent empty files in SELinux module + store + ------------------------------------------------------------------- Wed Jul 29 14:37:19 UTC 2020 - Thorsten Kukuk diff --git a/libsemanage.spec b/libsemanage.spec index 356289a..cb298c9 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -1,7 +1,7 @@ # # spec file for package libsemanage # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,14 +16,16 @@ # +%define libname libsemanage2 + Name: libsemanage -Version: 3.1 +Version: 3.2 Release: 0 Summary: SELinux policy management library License: LGPL-2.1-or-later 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: baselibs.conf Source2: semanage.conf # PATCH-FIX-UPSTREAM bsc#1133102 LTO: Update map file to include new symbols and remove wildcards @@ -45,12 +47,12 @@ libselinux to interact with the SELinux system, it also calls helper programs for loading policy and for checking whether the file_contexts configuration is valid. -%package -n libsemanage1 +%package -n %{libname} Summary: SELinux policy management library Group: System/Libraries Suggests: %{name}-migrate-store -%description -n libsemanage1 +%description -n %{libname} libsemanage is the policy management library. Using libsepol and libselinux to interact with the SELinux system, it also calls helper programs for loading policy and for checking whether the @@ -64,7 +66,7 @@ Security.) %package devel Summary: Header files and libraries for SELinux's policy management libary Group: Development/Libraries/C and C++ -Requires: libsemanage1 = %{version} +Requires: %{libname} = %{version} Requires: libustr-devel %description devel @@ -113,10 +115,10 @@ cp %{SOURCE2} %{buildroot}%{_sysconfdir}/selinux/semanage.conf # Remove duplicate files %fdupes -s %{buildroot}%{_mandir} -%post -n libsemanage1 -p /sbin/ldconfig -%postun -n libsemanage1 -p /sbin/ldconfig +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig -%files -n libsemanage1 +%files -n %{libname} %dir %{_sysconfdir}/selinux %config(noreplace) %{_sysconfdir}/selinux/semanage.conf %{_libdir}/libsemanage.so.* diff --git a/python-semanage.changes b/python-semanage.changes index f3ee6dc..740f85d 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Mar 9 09:09:18 UTC 2021 - Johannes Segitz + +- Update to version 3.2 + * dropped old and deprecated symbols and functions + libsemanage version was bumped to libsemanage.so.2 + * libsemanage tries to sync data to prevent empty files in SELinux module + store + ------------------------------------------------------------------- Tue Jul 14 08:36:19 UTC 2020 - Johannes Segitz diff --git a/python-semanage.spec b/python-semanage.spec index 1914e5d..47431f8 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -1,7 +1,7 @@ # # spec file for package python-semanage # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,15 +16,17 @@ # +%define libname libsemanage2 + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-semanage -Version: 3.1 +Version: 3.2 Release: 0 Summary: Python bindings for SELinux's policy management library License: LGPL-2.1-only Group: Development/Languages/Python URL: https://github.com/SELinuxProject/selinux -Source: https://github.com/SELinuxProject/selinux/releases/download/20200710/libsemanage-%{version}.tar.gz +Source: https://github.com/SELinuxProject/selinux/releases/download/%{version}/libsemanage-%{version}.tar.gz Source1: baselibs.conf # PATCH-FIX-UPSTREAM bsc#1133102 LTO: Update map file to include new symbols and remove wildcards # For now we need to disable this. This breaks e.g. shadow and also other packages in security:SELinux @@ -35,12 +37,12 @@ BuildRequires: bison BuildRequires: flex BuildRequires: libbz2-devel BuildRequires: libselinux-devel -BuildRequires: libsepol-devel +BuildRequires: libsepol-devel >= 3.2 BuildRequires: libustr-devel BuildRequires: python-rpm-macros BuildRequires: swig # Ensure same version -Requires: libsemanage1 = %{version} +Requires: %{libname} = %{version} %python_subpackages %description