Information
AlmaLinux OS 9 must disable the ability of a user to restart the system from the login screen.
GROUP ID: V-269279
RULE ID: SV-269279r1050161
A user who is at the console can reboot the system at the login screen. If restart or shutdown buttons are pressed at the login screen, this can create the risk of short-term loss of availability of systems due to reboot.
Solution
Configure AlmaLinux OS 9 to disable a user's ability to restart the system.
Add or update the [org/gnome/settings-daemon/] section of the /etc/dconf/db/local.d/00-security-settings" database file and add or update the following lines:
[org/gnome/login-screen]
disable-restart-buttons=true
Then update the dconf system databases:
$ dconf update