From 76295ef61ac991227250d199eb14a80d03b19069a0794704099f1b5ca696fa1f Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Wed, 17 Mar 2021 15:35:23 +0000 Subject: [PATCH] Accepting request 879702 from home:jsegitz:branches:security:SELinux - Move configuration file to separate libsemanage-conf package to allow for parallel installation in future versions OBS-URL: https://build.opensuse.org/request/show/879702 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=89 --- libsemanage.changes | 6 ++++++ libsemanage.spec | 17 +++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/libsemanage.changes b/libsemanage.changes index c598540..06d3ccf 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 17 08:29:15 UTC 2021 - Johannes Segitz + +- Move configuration file to separate libsemanage-conf package to allow + for parallel installation in future versions + ------------------------------------------------------------------- Tue Mar 9 09:09:18 UTC 2021 - Johannes Segitz diff --git a/libsemanage.spec b/libsemanage.spec index cb298c9..2b32621 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -51,6 +51,7 @@ file_contexts configuration is valid. Summary: SELinux policy management library Group: System/Libraries Suggests: %{name}-migrate-store +Requires: %{name}-conf >= %{version} %description -n %{libname} libsemanage is the policy management library. Using libsepol and @@ -63,6 +64,16 @@ utilities that implement mandatory access control policies, such as Type Enforcement, Role-based Access Control and Multi-Level Security.) +%package conf +Summary: Configuration for the SELinux policy management library +# before 3.1 the config file wasn't separated, so no parallel install is possible +Group: System/Libraries +Conflicts: %{name}1 <= 3.1 + +%description conf +Configuration file for libsemanage. Moved to a separate package to allow +parallel installation + %package devel Summary: Header files and libraries for SELinux's policy management libary Group: Development/Libraries/C and C++ @@ -119,11 +130,13 @@ cp %{SOURCE2} %{buildroot}%{_sysconfdir}/selinux/semanage.conf %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} -%dir %{_sysconfdir}/selinux -%config(noreplace) %{_sysconfdir}/selinux/semanage.conf %{_libdir}/libsemanage.so.* %dir %{_localstatedir}/lib/selinux +%files conf +%dir %{_sysconfdir}/selinux +%config(noreplace) %{_sysconfdir}/selinux/semanage.conf + %files devel %{_libdir}/libsemanage.so %{_libdir}/pkgconfig/libsemanage.pc