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