Information
Without identifying and authenticating devices, unidentified or unknown devices may be introduced, thereby facilitating malicious activity.
Peripherals include, but are not limited to, such devices as flash drives, external storage, and printers.
Satisfies: SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163
Solution
Configure RHEL 10 so that the GNOME desktop does not allow a user to change the setting that disables automated mounting of removable media.
Note: The example below is using the database "local" for the system. If the system is using another database in "/etc/dconf/profile/user", the file should be created under the appropriate subdirectory.
Update the "/etc/dconf/db/local.d/locks/00-security-settings-lock" file to prevent user modification:
$ sudo vi /etc/dconf/db/local.d/locks/00-security-settings-lock
/org/gnome/desktop/media-handling/automount-open
Update the dconf system databases:
$ sudo dconf update