-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify ubuntu remediation for dconf_gnome_banner_enabled
The remediation was modified to enable the banner also in `greeter.dconf-defaults` and not only in the dconf database. This is to be consistent with the remediation in related rule `dconf_gnome_login_banner_text` and be better aligned with STIG V1R1.
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...-banners/gui_login_banner/dconf_gnome_banner_enabled/tests/correct_value_defaults.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# platforms = multi_platform_ubuntu | ||
# packages = dconf,gdm | ||
|
||
clean_dconf_settings | ||
|
||
cat > /etc/gdm3/greeter.dconf-defaults <<EOF | ||
[org/gnome/login-screen] | ||
banner-message-enable=true | ||
EOF | ||
|
||
dconf update |
12 changes: 12 additions & 0 deletions
12
...ts-banners/gui_login_banner/dconf_gnome_banner_enabled/tests/wrong_value_defaults.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# platforms = multi_platform_ubuntu | ||
# packages = dconf,gdm | ||
|
||
clean_dconf_settings | ||
|
||
cat > /etc/gdm3/greeter.dconf-defaults <<EOF | ||
[org/gnome/login-screen] | ||
banner-message-enable=false | ||
EOF | ||
|
||
dconf update |