3fe9255f89
- If there is no executable we don't want to print a part of STANDARD FILE CONTEXT
28 lines
915 B
Diff
28 lines
915 B
Diff
From cbe5a25fed96d535ba16a936f7347d19ac211fdf Mon Sep 17 00:00:00 2001
|
|
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
|
|
|
|
---
|
|
policycoreutils/sepolicy/sepolicy/manpage.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/policycoreutils/sepolicy/sepolicy/manpage.py b/policycoreutils/sepolicy/sepolicy/manpage.py
|
|
index 835dc43..849eecf 100755
|
|
--- a/policycoreutils/sepolicy/sepolicy/manpage.py
|
|
+++ b/policycoreutils/sepolicy/sepolicy/manpage.py
|
|
@@ -737,7 +737,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
|
|
|
|
--
|
|
1.9.0
|
|
|