Mailinglist Archive: opensuse-bugs (4162 mails)
| < Previous | Next > |
[Bug 509108] New: ruby-polkit gives wrong answer
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Tue, 2 Jun 2009 08:34:31 -0600
- Message-id: <bug-509108-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
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@xxxxxxxxxx
ReportedBy: mvidner@xxxxxxxxxx
QAContact: jsrain@xxxxxxxxxx
CC: schubi@xxxxxxxxxx
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.
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@xxxxxxxxxx
ReportedBy: mvidner@xxxxxxxxxx
QAContact: jsrain@xxxxxxxxxx
CC: schubi@xxxxxxxxxx
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.
| < Previous | Next > |