Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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):
gdm-2.30.4-5.el6.i686
How reproducible:
Always
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:
[Disable stop/restart]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.stop;org.freedesktop.consolekit.system.stop-multiple-users;org.freedesktop.consolekit.system.restart;org.freedesktop.consolekit.system.restart-multiple-users
ResultActive=no
ResultAny=no
and
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.suspend;org.freedesktop.devicekit.power.hibernate
ResultActive=no
ResultAny=no
3. Restart gdm.
Actual results:
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.
Expected results:
No user interface elements should offer a means to shut down or restart the system.
Additional info:
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:
commit d8a75a806215cf95832de70da7fdb9c7592d697f
Author: Ray Strode <rstrode>
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.
https://bugzilla.gnome.org/show_bug.cgi?id=624298
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.
Thanks.
S.
Comment 6RHEL Program Management
2011-05-13 23:08:14 UTC
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.
http://rhn.redhat.com/errata/RHBA-2011-1721.html