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.
Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=959864
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).
-- 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.