Bug 59709 - pkexec's internal agent is racy
Summary: pkexec's internal agent is racy
Status: RESOLVED MOVED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL: https://bugs.gentoo.org/show_bug.cgi?...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-22 12:14 UTC by Nirbheek Chauhan
Modified: 2018-08-20 21:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.