http://bugzilla.novell.com/show_bug.cgi?id=509108 Summary: ruby-polkit gives wrong answer Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: kkaempf@novell.com ReportedBy: mvidner@novell.com QAContact: jsrain@novell.com CC: schubi@novell.com Found By: --- I have an authorization for an action, as polkit-auth shows # polkit-auth --user root --explicit-detail | grep -A4 services.read org.opensuse.yast.system.services.read Authorized: Yes Scope: Indefinitely Obtained: Tue May 26 09:35:49 2009 from root (uid 0) (BTW the same fails if I run as non-root: polkit-auth: NotAuthorizedToReadAuthorizationsForOtherUsers: uid 11018 is not authorized to read all authorizations (requires org.freedesktop.policykit.read)) But this program gives the wrong answer when I run it as non-root: $ cat polkit_check.rb #!/usr/bin/ruby require "polkit" r = PolKit.polkit_check("org.opensuse.yast.system.services.read", "root") print "#{r}\n" # ./polkit_check.rb yes $ ./polkit_check.rb no I straced it and it looks only in /var/lib/PolicyKit-public whereas the authorization is in /var/lib/PolicyKit. Maybe it is related to the exception above but then I'd expect an error instead of a wrong answer. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.