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.
Bug 645462 - shutdown dialog offers Suspend and Hibernate options even if disabled in PolicyKit
Summary: shutdown dialog offers Suspend and Hibernate options even if disabled in Poli...
Keywords:
Status: CLOSED DUPLICATE of bug 625880
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: DeviceKit-power
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Richard Hughes
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-21 14:48 UTC by Dan Astoorian
Modified: 2010-10-21 16:33 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-21 16:33:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dan Astoorian 2010-10-21 14:48:58 UTC
Description of problem:
The shutdown dialog offers suspend and hibernate options even if the corresponding actions (org.freedesktop.devicekit.power.suspend, org.freedesktop.devicekit.power.hibernate) are disallowed via PolicyKit.

Version-Release number of selected component (if applicable):
gnome-session-2.28.0-13.el6.i686

How reproducible:
Always

Steps to Reproduce:
1. Create a *.pkla file forbidding users from suspending or hibernating the system; e.g., create /etc/polkit-1/localauthority/90-mandatory.d/50-disable-suspend.pkla containing:
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.suspend;org.freedesktop.devicekit.power.hibernate
ResultActive=no
ResultAny=no

2. Select System -> Shut Down...
  
Actual results:
Suspend and Hibernate actions are listed.  Selecting either option locks the screen (but then, correctly, fails to suspend or hibernate the system).

Expected results:
The Suspend and Hibernate actions should not be offered to the user if they are prohibited by policy.

Additional info:
The dialog does correctly remove the Shut Down and Restart options if the appropriate actions (org.freedesktop.consolekit.system.stop and org.freedesktop.consolekit.system.restart respectively) are prohibited; only Suspend and Hibernate fail to take policy settings into account.  Note that it's possible that all four options could be disabled in policy; ideally, the "Shut Down..." option could be removed from the System menu entirely.  (Is there another way to manually remove "Shut Down..." from the system menu?)

Comment 2 Ray Strode [halfline] 2010-10-21 16:33:32 UTC

*** This bug has been marked as a duplicate of bug 625880 ***


Note You need to log in before you can comment on or make changes to this bug.