Bug 544534 - Parallel authorization calls fail as not authorized + challenge
Summary: Parallel authorization calls fail as not authorized + challenge
Keywords:
Status: CLOSED DUPLICATE of bug 526053
Alias: None
Product: Fedora
Classification: Fedora
Component: polkit
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Zeuthen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-05 09:15 UTC by Dan Williams
Modified: 2013-03-06 04:00 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-07 07:20:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dan Williams 2009-12-05 09:15:23 UTC
Steps to reproduce the issue:

pkcheck --action-id org.freedesktop.network-manager-settings.system.modify --process 1863 --allow-user-interaction

(use some pid of your process there instead of 1863) and instead of typing in the password, run that command again in another terminal.

Actual result: second pkcheck command fails with "not authorized"

Expected result: second pkcheck command blocks until the authorization from the first pkcheck command completes, then returns the same result as the first command


Basically, if there's an authorization request already in progress for a specific privilege, it's pretty inconvenient for subsequent requests for that same privilege to actually return before the authorization is done and before the first auth request completes.  That means the client application has to serialize all authorization calls for the same privilege internally.  Which is icky; I guess I had expected polkit to do that for me...

Is having polkit internally serialize the auth requests an acceptable proposal for polkit behavior?  Makes it a lot easier on the app writers.

Comment 1 Dan Williams 2009-12-07 07:20:13 UTC

*** This bug has been marked as a duplicate of bug 526053 ***


Note You need to log in before you can comment on or make changes to this bug.