From 1c3f2c8ee7aca9e552e87e84eee7b756205f30a8 Mon Sep 17 00:00:00 2001 From: Radovan Sroka Date: Tue, 29 Mar 2022 10:55:18 +0200 Subject: [PATCH] Usbguard requires selinux subpackage - this ensures that the selinux package and all its dependencies are not pulled into containers and other systems that do not use SELinux Signed-off-by: Radovan Sroka --- usbguard.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/usbguard.spec b/usbguard.spec index f3efa4f..8fdc0c8 100644 --- a/usbguard.spec +++ b/usbguard.spec @@ -4,7 +4,7 @@ Name: usbguard Version: 1.1.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A tool for implementing USB device usage policy License: GPLv2+ ## Not installed @@ -20,7 +20,8 @@ Requires(preun): systemd Requires(postun): systemd Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig -Recommends: %{name}-selinux + +Requires: (%{name}-selinux if selinux-policy-%{selinuxtype}) Obsoletes: %{name}-applet-qt < 0.7.6 BuildRequires: make @@ -227,8 +228,12 @@ fi %selinux_relabel_post -s %{selinuxtype} - %changelog +* Tue Mar 29 2022 Radovan Sroka - 1.1.0-3 +- usbguard requires selinux subpackage +- this ensures that the selinux package and all its dependencies are + not pulled into containers and other systems that do not use SELinux + * Tue Mar 15 2022 Radovan Sroka - 1.1.0-2 - selinux: allow policykit dbus comunnication - restore support for access control filenames without a group