[PATCH] Allow hibernate, suspend and CPUFreq for root independently from desktop-console

Danny Kukawka danny.kukawka at web.de
Wed Mar 21 01:27:46 PDT 2007


Ping ... Okay to commit? Any comments?

Danny

On Mittwoch, 7. März 2007, Holger Macht wrote:
> This changes the logic how privileges for hibernate, suspend and cpufreq
> are determined. With the current situation, the application/script
> checking if the caller is allowed to do something, has to explicitly grant
> access for the root user with checking for uid == 0. The new method
> exclusively grants access for the root user, but specifies that others can
> possess the privilege as soon as they possess the desktop-console
> privilege. This way, the lower lever application/script does not have to
> handle any special case, it just has to check if the caller (whether root
> or not) possesses the specific privilege.
> 
> I hope that I was able to make this clear. It is a little bit tricky to
> explain and to understand ;-)
> 
> I have this patch already sometime in the openSUSE hal package and I think
> it is correct, or at least more simple to handle. I just somehow forgot to
> bring it up earlier. Comments?  Maybe this also makes sense for some of
> the other privileges before 0.5.9?


More information about the hal mailing list