11.4 Beta - Policykit

Hi guys,

Regarding 11.4 Beta 2.6.37-rc5-12-desktop Gnome policykit:

I’m getting many root authorization pop-ups and there doesn’t seem to be any easy way to fix them. This is all the more annoying, since on my Toshiba laptop, the power saving related actions do not work at all.

  1. Screen brightness changes (due to power plug in/out).
  2. Hard disk spin down timeout (at startup, due to Gnome power saving settings).
  3. Network manager (to connect to a WiFi access point).
  4. Halt, shutdown and reboot also require authorization.

The Yast Security Centre and Hardening wizard has a Predefined Security Configuration for Home Workstation, which I would expect to fix these issues, but it doesn’t make any difference whatsoever.

Is there any way to change these, without having to edit the policykit configuration files manually?

Cheers,

H.

On 01/25/2011 06:06 AM, hermanab wrote:
>
> I’m getting many root authorization pop-ups and there doesn’t seem to
> be any easy way to fix them.

what do you mean by “root authorization pop-ups”?
when do they pop up?
what do they look like?
what do they say?
do they ask for the root password?

can you do a screen shot of one, and put it pastebin or somewhere and
shoot us a URL…

> The Yast Security Centre and Hardening wizard has a Predefined Security
> Configuration for Home Workstation, which I would expect to fix these
> issues, but it doesn’t make any difference whatsoever.

maybe you are expecting something which is not available…

> Is there any way to change these, without having to edit the policykit
> configuration files manually?

let us first see what is popping up…please…


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 11.3, KDE4.4.4
release 3, Thunderbird3.0.11,]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

Here is one: http://www.aeronetworks.ca/auth.png

It pops up the moment I pull the power plug out of the laptop.

Yep, seen this as well. And, now that you mention it, this could very well be a regression of Policykit. It was there before…but I can’t find it anymore.

On
> this could very well be a regression of Policykit. It was there before…

yep, so back to the OP question: “Is there any way to change these,
without having to edit the policykit configuration files manually?”

yep, log a bug see http://en.opensuse.org/Submitting_Bug_Reports

or get with the devs on IRC or the factory mail list and have a chat,
start here: http://en.opensuse.org/openSUSE:Communication_channels


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 11.3, KDE4.4.4
release 3, Thunderbird3.0.11,]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

There is a bug filed already. I added some more comments.

Cheers,

H.

OK, here is my crude workaround. It may grant more privileges than an ordinary mortal may need.

I created file /etc/polkit-default-privs.local:

Note that you need to run /sbin/set_polkit_default_privs for

changes to take effect.

Format:

<privilege> <any>:<inactive>:<active>

org.freedesktop.network-manager-settings.system.modify yes
org.freedesktop.network-manager-settings.system.hostname.modify yes
org.freedesktop.network-manager-settings.system.wifi.share.protected yes
org.freedesktop.network-manager-settings.system.wifi.share.open yes
org.freedesktop.NetworkManager.enable-disable-network yes
org.freedesktop.NetworkManager.enable-disable-wifi yes
org.freedesktop.NetworkManager.enable-disable-wwan yes
org.freedesktop.NetworkManager.use-user-connections yes
org.freedesktop.NetworkManager.network-control yes
org.freedesktop.NetworkManager.sleep-wake yes
org.freedesktop.hal.power-management.shutdown yes
org.freedesktop.hal.power-management.shutdown-multiple-sessions yes
org.freedesktop.hal.power-management.reboot yes
org.freedesktop.hal.power-management.reboot-multiple-sessions yes
org.freedesktop.hal.power-management.set-powersave yes
org.freedesktop.hal.power-management.suspend yes
org.freedesktop.hal.power-management.hibernate yes
org.freedesktop.hal.power-management.standby yes
org.freedesktop.hal.power-management.cpufreq yes
org.freedesktop.hal.power-management.lcd-panel yes
org.freedesktop.hal.power-management.light-sensor yes
org.freedesktop.hal.power-management.keyboard-backlight yes
org.freedesktop.hal.dockstation.undock yes
org.freedesktop.hal.leds.brightness yes
org.freedesktop.udisks.drive-set-spindown yes
org.freedesktop.upower.suspend yes
org.freedesktop.upower.hibernate yes