Bug 59709

Summary: pkexec's internal agent is racy
Product: PolicyKit Reporter: Nirbheek Chauhan <nirbheek.chauhan>
Component: daemonAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED MOVED QA Contact: David Zeuthen (not reading bugmail) <zeuthen>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
URL: https://bugs.gentoo.org/show_bug.cgi?id=449842
Whiteboard:
i915 platform: i915 features:

Description Nirbheek Chauhan 2013-01-22 12:14:45 UTC
When a polkit agent isn't available in the current session, and pkexec's internal agent is used to authenticate and run a command that takes some time to execute, the auth thread exits prematurely and causes a hangup.

This has been reported in a number of places, including Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=449842

Steps to reproduce:

1. Kill all polkit auth agents in the session
2. pkexec find /

Expected output:

[Several thousand lines of file listings]

Actual output:

$ pkexec find /
[...]
==== AUTHENTICATION COMPLETE ===
/
Hangup
$
Comment 1 GitLab Migration User 2018-08-20 21:35:10 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/polkit/polkit/issues/19.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.