Skip to content

Commit

Permalink
Align networkmanager_dns_mode to the RHEL 9 STIG
Browse files Browse the repository at this point in the history
Fixes #11702
  • Loading branch information
Mab879 committed Mar 22, 2024
1 parent 47e1875 commit ca6c392
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{{{
oval_check_ini_file(
{{{ oval_check_config_file(
path="/etc/NetworkManager/NetworkManager.conf",
section="main",
prefix_regex="",
parameter="dns",
value="default|none",
missing_parameter_pass=false,
separator_regex="=",
missing_parameter_pass=False,
application="NetworkManager",
multi_value=false,
missing_config_file_fail=true
)
multi_value=true,
missing_config_file_fail=true,
section="main")
}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# variables = var_networkmanager_dns_mode = default
# packages = NetworkManager

cat > /etc/NetworkManager/NetworkManager.conf << EOM
[main]
dns = none
EOM

0 comments on commit ca6c392

Please sign in to comment.