Description of problem:
A "Shutdown Options" menu appears in the lower right corner of the gdm simple-greeter login screen with "Suspend", "Restart" and "Shut Down" options even if the gconf key /apps/gdm/simple-greeter/disable_restart_buttons has been set to false, and even if the actions themselves are disallowed via PolicyKit.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run the command
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory -t bool -s /apps/gdm/simple-greeter/disable_restart_buttons true
to set the disable_restart_buttons key to true.
2. Deny permission for stop, restart, suspend or hibernate actions in the PolicyKit configuration; e.g., by installing *.pkla files into /etc/polkit-1/localauthority/90-mandatory.d such as:
3. Restart gdm.
The menu still appears. If the operations have been disallowed in PolicyKit as per step 2 above, the actions will not succeed, but they are still not removed from the menu.
No user interface elements should offer a means to shut down or restart the system.
Ideally, gdm should remove the operations from the menu automatically if PolicyKit indicates that they would not be permitted; and if no actions remain in the menu after doing so, the menu itself should be removed. Alternatively, it should be possible for administrators to manually instruct simple-greeter not to provide this interface, which is the ostensible purpose of the /apps/gdm/simple-greeter/disable_restart_buttons key.
Looks like a pretty trivial patch we can pick up from upstream:
Author: Ray Strode <email@example.com>
Date: Wed Sep 15 14:54:17 2010 -0400
Don't show shutdown options when not available
The logic for showing the shut down menu was a little
iffy before. This is apparently causing issues on solaris,
and probably elsewhere.
but since we're not currently planning on doing a gdm update for other issues for 6.1, this doesn't seem to motivate an update by itself - issue is just cosmetic.
I am also experiencing this issue. When can we expect GA for this patch?
This functionality is mandatory to comply with DISA STIG.
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update release.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.