From b9dec8c7208c99434b313f38f759e395635d0dd2 Mon Sep 17 00:00:00 2001 From: Alan Moore Date: Wed, 15 Jan 2025 16:43:49 +0000 Subject: [PATCH] Exlucde # in oval of pam_options template --- shared/templates/pam_options/oval.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/templates/pam_options/oval.template b/shared/templates/pam_options/oval.template index 45c6e1cf39f..1052c594d4d 100644 --- a/shared/templates/pam_options/oval.template +++ b/shared/templates/pam_options/oval.template @@ -48,9 +48,9 @@ {{{ PATH }}} {{% if arg['argument_match']|length %}} - ^\s*{{{ TYPE }}}(?:(?!\n)\s)+{{{ MATCH_CONTROL_FLAG }}}(?:(?!\n)\s)+{{{ MODULE }}}((?!\n)\s[^\n]+)?(?!\n)\s+{{{ arg['argument'] }}}={{{ arg['argument_match'] }}}((\s+\S+)*\s*\\*\s*)$ + ^\s*{{{ TYPE }}}(?:(?!\n)\s)+{{{ MATCH_CONTROL_FLAG }}}(?:(?!\n)\s)+{{{ MODULE }}}((?!\n)\s[^\n#]+)?(?!\n)\s+{{{ arg['argument'] }}}={{{ arg['argument_match'] }}}((\s+\S+)*\s*\\*\s*)$ {{% else %}} - ^\s*{{{ TYPE }}}(?:(?!\n)\s)+{{{ MATCH_CONTROL_FLAG }}}(?:(?!\n)\s)+{{{ MODULE }}}((?!\n)\s[^\n]+)?(?!\n)\s+{{{ arg['argument'] }}}((\s+\S+)*\s*\\*\s*)$ + ^\s*{{{ TYPE }}}(?:(?!\n)\s)+{{{ MATCH_CONTROL_FLAG }}}(?:(?!\n)\s)+{{{ MODULE }}}((?!\n)\s[^\n#]+)?(?!\n)\s+{{{ arg['argument'] }}}((\s+\S+)*\s*\\*\s*)$ {{% endif %}} 1