Bug 445723

Summary: gnome shutoff issues
Product: [Fedora] Fedora Reporter: Josh Lange <sillygates>
Component: gdmAssignee: jmccann
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: cschalle, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-09 00:25:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Josh Lange 2008-05-08 19:04:46 UTC
Description of problem:
in the version of gdm shipping with rawhide, disabling the shutdown/reset/etc
buttons through the /apps/gdm/simple-greeter/disable_restart_buttons does not
prevent gnome from shutting down the system


Actual results:
The buttons properly disappear from the gdm menu,
but once a user logs in, they can still shutdown the system

Expected results:
Gnome should be barred from disabling shutdown.

Notes:
This is offers a potential avenue to DoS a system.

Comment 1 Josh Lange 2008-05-08 19:06:45 UTC
Whoops:

Expected results:
Gnome should be barred from shutting down the system.

Comment 2 Ray Strode [halfline] 2008-05-08 19:26:31 UTC
Hi, I believe shutdown is managed by policy kit.

if you install PolicyKit-gnome and run /usr/bin/polkit-gnome-authorization and
set Active Console to "no" for "Restart the system" and "Stop the system" in the
consolekit policy, does it work?

Comment 3 Josh Lange 2008-05-08 20:58:04 UTC
Hmm, I see that you are right, though its a bit quirky.

1. The shutdown option doesn't disappear from the system menu once all
shutdown-like options are disallowed (hal.hibernate..reboot..etc and
consolekit.stop..reset). This means that there is no longer any way to remove
this menu item from the gnome panel. (annoyance, really)


2. if you attempt to shut down you are given an error. If you do it again, you
are given the same error 2 times,...etc (totally doesn't matter)

Comment 4 Ray Strode [halfline] 2008-05-09 00:25:35 UTC
ah yes, we already have a bug for that.

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