Configure GNOME3 DConf User Profile
An XCCDF Rule
Description
By default, DConf provides a standard user profile. This profile contains a list
of DConf configuration databases. The user profile and database always take the
highest priority. As such the DConf User profile should always exist and be
configured correctly.
To make sure that the gdm profile is configured correctly, the /etc/dconf/profile/gdm
should be set as follows:
user-db:user system-db:gdmTo make sure that the user profile is configured correctly, the
/etc/dconf/profile/user
should be set as follows:
user-db:user system-db:local
Rationale
Failure to have a functional DConf profile prevents GNOME3 configuration settings from being enforced for all users and allows various security risks.
- ID
- xccdf_org.ssgproject.content_rule_enable_dconf_user_profile
- Severity
- High
- References
- Updated
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if dpkg-query --show --showformat='${db:Status-Status}\n' 'gdm3' 2>/dev/null | grep -q installed && { [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; }; then
# configure two dconf profiles:
# - gdm: required for banner/user_list settings
# - user: required for screenlock,automount,ctrlaltdel,... settings