Bug 64267 - pkttyagent --system-bus-name has broken
Summary: pkttyagent --system-bus-name has broken
Status: RESOLVED MOVED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: libpolkit (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://bugzilla.redhat.com/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-06 06:56 UTC by Stef Walter
Modified: 2018-08-20 21:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Stef Walter 2013-05-06 06:56:37 UTC
The 'pkttyagent --system-bus-name' functionality has broken:

[stef@stef-fedora ~]$ pkttyagent --system-bus-name :1.133

** (process:2461): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Only unix-process and unix-session subjects can be used for authentication agents.
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Only unix-process and unix-session subjects can be used for authentication agents. (polkit-error-quark, 0)

Using polkit version 0.110 here. Running as root makes no difference here.
Comment 1 Stef Walter 2013-05-06 06:56:44 UTC
Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=959864
Comment 2 Miloslav Trmac 2013-05-06 16:45:12 UTC
Stef, has the pkttyagent functionality actually ever worked?  AFAICS the restrictions on subjects had been there even before pkttyagent has been added:

The message comes from commit 42177383585e1e01cd6150f891176afcd4538a82, Aug 12 2010 - which was actually expanding the subjects agents can be registered for, from session only to session or process.

--system-bus-name comes from commit 13c5b2ebcdc81c4841e2d455cbb8dd7c58057043 , May 29 2009 - actually adding it to pkcheck(1), not pkttyagent(1).

bda0fc1de3361fc6f377d041ce2088118048fdf7, Apr 11 2012, then added pkttyagent(1), very likely copy&pasting a lot of code from pkcheck(1).
Comment 3 GitLab Migration User 2018-08-20 21:36:22 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/36.


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.