You are not logged in.

#1 2009-08-29 15:11:55

jackphil
Member
Registered: 2008-12-04
Posts: 21

[resolved] Policykit: the defaults don't effect?

the /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy says:

<action id="org.freedesktop.hal.storage.mount-removable">
    <description>Mount file systems from removable drives.</description>
    <message>System policy prevents mounting removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

but the defaults settings (allow_active) seems not effect. I have to copy it to /etc/PolicyKit/PolicyKit.conf. So what is the difference between org.freedesktop.hal.storage.policy and PolicyKit.conf?

Last edited by jackphil (2009-09-01 05:26:45)

Offline

#2 2009-08-29 15:45:39

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [resolved] Policykit: the defaults don't effect?

Hello Jackphil!

Does ConsoleKit or ck-launch-session help you in policy problem(s)?

Offline

#3 2009-08-29 21:53:46

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [resolved] Policykit: the defaults don't effect?

Thats sort of a "known problem" due to a recent change in whatever-kit.
Most users were unable to mount removable drives or shutdown/reboot their pcs after the update. A quick and somewhat insecure "fix" (if you have more than on user in your machine) is to put this inside /etc/PolicyKit/PolicyKit.conf

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
    <match action="org.freedesktop.hal.storage.*">
        <return result="yes"/>
    </match>
    <match action="org.freedesktop.hal.power-management.*">
        <return result="yes"/>
    </match>
</config>

Search a bit in the forums and you will find more about this I'm sure.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2009-09-01 05:26:18

jackphil
Member
Registered: 2008-12-04
Posts: 21

Re: [resolved] Policykit: the defaults don't effect?

to djszapi: ck-launch-session works fine, thanks

Offline

Board footer

Powered by FluxBB