744482a3e6
The segenxml tool is used to generate documentation regarding the policy definitions. Its output is an XML file that contains the in-line comments associated with boolean generation as well as interface definitions. With booleans also generated inside templates, this information was (until now) ignored. Templates such as apache's apache_content_template which created new booleans were not properly documented, as the in-template comments were ignored. In this patch, we will go over module code first and seek template calls. When a template call is matched, the module code is updated (expanded) with the template content (while substituting the arguments to get a proper code listing). Only after all templates have been expanded we seek the necessary boolean definitions. Changes since v2: - Fix BOOLEAN statements to match backtick (`) and tick (') usages as well - Fix match for arguments to also include multiple entries ( { ... } ) Changes since v1: - Also apply the regexp on BOOLEAN to allow generating templated boolean/tunable documentation Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be> |
||
---|---|---|
.. | ||
comment_move_decl.sed | ||
divert.m4 | ||
fatal_error.m4 | ||
fc_sort.c | ||
genclassperms.py | ||
genhomedircon.py | ||
gennetfilter.py | ||
gentemplates.sh | ||
get_type_attr_decl.sed | ||
iferror.m4 | ||
Makefile.devel | ||
policyvers.py | ||
pyplate.py | ||
sedoctool.py | ||
segenxml.py | ||
selinux-policy-refpolicy.spec | ||
selinux-refpolicy-sources.spec.skel | ||
set_bools_tuns.awk | ||
undivert.m4 |