URL: https://github.com/freeipa/freeipa/pull/4435
Author: tiran
 Title: #4435: SELinux: Optional apache_manage_pid_files interface
Action: opened

PR body:
"""
SELinux policy on F30 doesn't have the interface
apache_manage_pid_files(). Make use of the interface optional.

Fixes: https://pagure.io/freeipa/issue/8241
Signed-off-by: Christian Heimes <chei...@redhat.com>
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4435/head:pr4435
git checkout pr4435
From e8d4cb90b0dc629c6210b7a026b48dc90caf04db Mon Sep 17 00:00:00 2001
From: Christian Heimes <chei...@redhat.com>
Date: Tue, 24 Mar 2020 16:07:54 +0100
Subject: [PATCH] SELinux: Optional apache_manage_pid_files interface

SELinux policy on F30 doesn't have the interface
apache_manage_pid_files(). Make use of the interface optional.

Fixes: https://pagure.io/freeipa/issue/8241
Signed-off-by: Christian Heimes <chei...@redhat.com>
---
 selinux/ipa.te | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/selinux/ipa.te b/selinux/ipa.te
index 257e6f857f..626d9d6a98 100644
--- a/selinux/ipa.te
+++ b/selinux/ipa.te
@@ -355,7 +355,9 @@ sysnet_read_config(ipa_custodia_t)
 optional_policy(`
 	apache_search_config(ipa_custodia_t)
 	apache_systemctl(ipa_custodia_t)
-	apache_manage_pid_files(ipa_custodia_t)
+	ifdef(`apache_manage_pid_files',`
+		apache_manage_pid_files(ipa_custodia_t)
+	')
 ')
 
 optional_policy(`
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org

Reply via email to