From 03f80ae03ad92f37667dfff7e8427879e0bae961 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Thu, 26 Jul 2012 16:11:52 -0400 Subject: [PATCH] Fix genman to stop truncating boolean descriptions that do not end with a '.', allow users to specify a list of domains to produce, fix spelling mistake --- genman.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/genman.py b/genman.py index 3b649ca8..f4c920db 100755 --- a/genman.py +++ b/genman.py @@ -209,7 +209,9 @@ control. if b.endswith("anon_write"): self.anon_list.append(b) else: - desc = seobject.booleans_dict[b][2][0].lower() + seobject.booleans_dict[b][2][1:-1] + desc = seobject.booleans_dict[b][2][0].lower() + seobject.booleans_dict[b][2][1:] + if desc[-1] == ".": + desc = desc[:-1] self.booltext += """ .PP If you want to %s, you must turn on the %s boolean. @@ -361,7 +363,7 @@ Path%s: self.fd.write(""" .PP -Note: File context can be temporarily modified with the chcon command. If you want to permanantly change the file context you need to use the +Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the .B semanage fcontext command. This will modify the SELinux labeling database. You will need to use .B restorecon @@ -441,5 +443,8 @@ selinux(8), %s(8), semanage(8), restorecon(8), chcon(1) if self.booltext != "": self.fd.write(", setsebool(8)") +if len(sys.argv) > 2: + domains = sys.argv[2:] + for domainname in domains: ManPage(domainname, sys.argv[1])