GNOME Bugzilla – Bug 645335
honor lockdown settings
Last modified: 2011-06-04 20:56:24 UTC
I don't see any code for honoring the disable-log-out setting. I guess we should.
org.gnome.desktop.lockdown has: <key name="disable-command-line" type="b"> <default>false</default> <_summary>Disable command line</_summary> <_description> Prevent the user from accessing the terminal or specifying a command line to be executed. For example, this would disable access to the panel's "Run Application" dialog. </_description> </key> <key name="disable-user-switching" type="b"> <default>false</default> <_summary>Disable user switching</_summary> <_description> Prevent the user from switching to another account while his session is active. </_description> </key> <key name="disable-lock-screen" type="b"> <default>false</default> <_summary>Disable lock screen</_summary> <_description> Prevent the user to lock his screen. </_description> </key> <key name="disable-application-handlers" type="b"> <default>false</default> <_summary>Disable URL and MIME type handlers</_summary> <_description> Prevent running any URL or MIME type handler applications. </_description> </key> <key name="disable-log-out" type="b"> <default>false</default> <_summary>Disable log out</_summary> <_description> Prevent the user from logging out. </_description> </key> </schema>
Created attachment 183934 [details] [review] user-status: Honor lockdown settings Right now, the user status menu always contains actions to logout and lock the screen, and the user switching action only depends on the technical availability of the functionality. All those items should honor the lockdown settings defined in org.gnome.desktop.lockdown.
Created attachment 183937 [details] [review] run-dialog: Honor lockdown settings org.gnome.desktop.lockdown has a setting to prevent the use of the Alt-F2 run dialog. Honor this setting.
Comment on attachment 183934 [details] [review] user-status: Honor lockdown settings looks good, though we might want to squish the switch/lock/logout section together with the suspend/poweroff section if there's only one item in it.
Comment on attachment 183937 [details] [review] run-dialog: Honor lockdown settings Attachment 183937 [details] pushed as 291ef07 - run-dialog: Honor lockdown settings
Comment on attachment 183934 [details] [review] user-status: Honor lockdown settings Attachment 183934 [details] pushed as 0eaf141 - user-status: Honor lockdown settings
gnome-session needs to honor it, too. I'll clone this bug.
Closing, as remaining issues will be fixed in gnome-session.
*** Bug 643290 has been marked as a duplicate of this bug. ***