2020-11-05 23:53:45 +00:00
|
|
|
From ae3780eb560fa5f00a3dd591c8233c2a9068a348 Mon Sep 17 00:00:00 2001
|
2020-10-14 23:23:12 +00:00
|
|
|
From: Miroslav Grepl <mgrepl@redhat.com>
|
|
|
|
Date: Mon, 12 May 2014 14:11:22 +0200
|
|
|
|
Subject: [PATCH] If there is no executable we don't want to print a part of
|
|
|
|
STANDARD FILE CONTEXT
|
|
|
|
|
|
|
|
---
|
|
|
|
python/sepolicy/sepolicy/manpage.py | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/python/sepolicy/sepolicy/manpage.py b/python/sepolicy/sepolicy/manpage.py
|
2020-11-05 23:53:45 +00:00
|
|
|
index a1d70623cff0..2d33eabb2536 100755
|
2020-10-14 23:23:12 +00:00
|
|
|
--- a/python/sepolicy/sepolicy/manpage.py
|
|
|
|
+++ b/python/sepolicy/sepolicy/manpage.py
|
|
|
|
@@ -793,7 +793,8 @@ SELinux %(domainname)s policy is very flexible allowing users to setup their %(d
|
|
|
|
.PP
|
|
|
|
""" % {'domainname': self.domainname, 'equiv': e, 'alt': e.split('/')[-1]})
|
|
|
|
|
|
|
|
- self.fd.write(r"""
|
|
|
|
+ if flist_non_exec:
|
|
|
|
+ self.fd.write(r"""
|
|
|
|
.PP
|
|
|
|
.B STANDARD FILE CONTEXT
|
|
|
|
|
|
|
|
--
|
2020-11-05 23:53:45 +00:00
|
|
|
2.29.0
|
2020-10-14 23:23:12 +00:00
|
|
|
|