polkit-github-migration-bot / t4_polkit

Other
0 stars 0 forks source link

pkttyagent --system-bus-name has broken #38

Open polkit-github-migration-bot opened 11 years ago

polkit-github-migration-bot commented 11 years ago

In gitlab.freedesktop.org by bugzilla-migration on May 6, 2013, 08:56

Link to the original issue: https://gitlab.freedesktop.org/polkit/polkit/-/issues/36

Submitted by Stef Walter

Assigned to David Zeuthen @david

Link to original bug (#64267)

Description

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.

polkit-github-migration-bot commented 11 years ago

In gitlab.freedesktop.org by bugzilla-migration on May 6, 2013, 08:56

:speech_balloon: Stef Walter said:

Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=959864

polkit-github-migration-bot commented 11 years ago

In gitlab.freedesktop.org by bugzilla-migration on May 6, 2013, 18:45

:speech_balloon: Miloslav Trmac said:

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).