Skip to content

Commit

Permalink
Merge pull request #11433 from jan-cerny/RHEL-1904
Browse files Browse the repository at this point in the history
Allow spaces in rule sudo_custom_logfile
  • Loading branch information
Mab879 committed Jan 9, 2024
2 parents 1c51d98 + 62068fa commit 45ab494
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ template:
#
# Finally, we check for regular word boundary (with \b), ensuring the
# next character isn't yet another word character.
option_regex_suffix: '=("(?:\\"|\\\\|[^"\\\n])*"\B|[^"](?:(?:\\,|\\"|\\ |\\\\|[^", \\\n])*)\b)'
option_regex_suffix: '\s*=\s*("(?:\\"|\\\\|[^"\\\n])*"\B|[^"](?:(?:\\,|\\"|\\ |\\\\|[^", \\\n])*)\b)'
variable_name: var_sudo_logfile

platform: package[sudo]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# platform = multi_platform_all
# packages = sudo

# Test that OVAL check allows spaces around the equal sign
# This test scenario is a regression test of https://issues.redhat.com/browse/RHEL-1904

echo "Defaults logfile = /var/log/sudo.log" >> /etc/sudoers

0 comments on commit 45ab494

Please sign in to comment.