2024-06-27 15:47:47 +00:00
|
|
|
From cb1b3bdca016edaa90e92b49d51544f8a38cba19 Mon Sep 17 00:00:00 2001
|
2023-06-21 12:39:46 +00:00
|
|
|
From: Vit Mojzis <vmojzis@redhat.com>
|
|
|
|
Date: Tue, 30 May 2023 09:07:28 +0200
|
|
|
|
Subject: [PATCH] python/sepolicy: Fix spec file dependencies
|
2023-11-14 19:40:57 +00:00
|
|
|
Content-type: text/plain
|
2023-06-21 12:39:46 +00:00
|
|
|
|
|
|
|
semanage is part of policycoreutils-python-utils package, selinuxenabled
|
|
|
|
is part of libselinux-utils (required by ^^^) and restorecon/load_policy
|
|
|
|
are part of policycoreutils (also required by policycoreutils-python-utils).
|
|
|
|
|
|
|
|
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
|
|
|
|
---
|
|
|
|
python/sepolicy/sepolicy/templates/spec.py | 12 +++++++-----
|
|
|
|
1 file changed, 7 insertions(+), 5 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/python/sepolicy/sepolicy/templates/spec.py b/python/sepolicy/sepolicy/templates/spec.py
|
2023-11-14 19:40:57 +00:00
|
|
|
index 433c298a17e0..a6d4508bb670 100644
|
2023-06-21 12:39:46 +00:00
|
|
|
--- a/python/sepolicy/sepolicy/templates/spec.py
|
|
|
|
+++ b/python/sepolicy/sepolicy/templates/spec.py
|
|
|
|
@@ -11,18 +11,20 @@ Version: 1.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: SELinux policy module for MODULENAME
|
|
|
|
|
|
|
|
-Group: System Environment/Base
|
|
|
|
-License: GPLv2+
|
|
|
|
+Group: System Environment/Base
|
|
|
|
+License: GPLv2+
|
|
|
|
# This is an example. You will need to change it.
|
|
|
|
+# For a complete guide on packaging your policy
|
|
|
|
+# see https://fedoraproject.org/wiki/SELinux/IndependentPolicy
|
|
|
|
URL: http://HOSTNAME
|
|
|
|
Source0: MODULENAME.pp
|
|
|
|
Source1: MODULENAME.if
|
|
|
|
Source2: DOMAINNAME_selinux.8
|
|
|
|
Source3: DOMAINNAME_u
|
|
|
|
|
|
|
|
-Requires: policycoreutils, libselinux-utils
|
|
|
|
-Requires(post): selinux-policy-base >= %{selinux_policyver}, policycoreutils
|
|
|
|
-Requires(postun): policycoreutils
|
|
|
|
+Requires: policycoreutils-python-utils, libselinux-utils
|
|
|
|
+Requires(post): selinux-policy-base >= %{selinux_policyver}, policycoreutils-python-utils
|
|
|
|
+Requires(postun): policycoreutils-python-utils
|
|
|
|
"""
|
|
|
|
|
|
|
|
mid_section="""\
|
|
|
|
--
|
2024-06-27 15:47:47 +00:00
|
|
|
2.44.0
|
2023-06-21 12:39:46 +00:00
|
|
|
|