Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
riseup-vpn: Cannot find any usable polkit
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
oneone
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2017
Posts: 99

PostPosted: Sun Jun 19, 2022 7:25 am    Post subject: riseup-vpn: Cannot find any usable polkit Reply with quote

Hi!

I am trying to run net-vpn/riseup-vpn-0.21.11::gentoo, but apparently no polkit agent can be found:

Code:
$ riseup-vpn
qml: flavor: riseup-vpn
QSystemTrayIcon::setVisible: No Icon set
2022/06/19 08:42:29 Client expects anon auth
2022/06/19 08:42:29 Checking for updates...
2022/06/19 08:42:29 Fetching MOTD for riseup.net
qml: delay...
2022/06/19 08:42:30 There are 1 pending messages
2022/06/19 08:42:30 firewall stop
2022/06/19 08:42:30 Getting certificate...
2022/06/19 08:42:30 Fetching certificate to /tmp/leap-413144749/openvpn.pem
2022/06/19 08:42:30 Fetching gateways...
2022/06/19 08:42:32 DEBUG We have a valid cert: /tmp/leap-413144749/openvpn.pem
2022/06/19 08:42:32 Got sorted gateways: [mockingjay.riseup.net redshank.riseup.net shag.riseup.net pie.riseup.net hoatzin.riseup.net hirondelle.riseup.net fournier.riseup.net mouette.riseup.net zarapito.riseup.net gaei.riseup.net yal.riseup.net starling.riseup.net limpkin.riseup.net crane.riseup.net garza.riseup.net]
2022/06/19 08:42:32 Got sorted gateways: [redshank.riseup.net mockingjay.riseup.net shag.riseup.net zarapito.riseup.net pie.riseup.net hoatzin.riseup.net mouette.riseup.net hirondelle.riseup.net fournier.riseup.net gaei.riseup.net yal.riseup.net starling.riseup.net limpkin.riseup.net crane.riseup.net garza.riseup.net]
2022/06/19 08:42:32 args passed to bitmask-root: [--auth SHA1 --cipher AES-128-CBC --keepalive 10 30 --tls-cipher DHE-RSA-AES128-SHA --tun-ipv6 --float ]
2022/06/19 08:42:32 firewall start
2022/06/19 08:42:32 openvpn start:  [--auth SHA1 --cipher AES-128-CBC --keepalive 10 30 --tls-cipher DHE-RSA-AES128-SHA --tun-ipv6 --float  --remote 212.83.165.160 80 tcp4 --remote 212.83.165.160 1194 tcp4 --remote 212.129.37.129 80 tcp4 --remote 212.129.37.129 1194 tcp4 --remote 212.83.182.127 443 tcp4 --verb 3 --management-client --management 127.0.0.1 6061 --ca /tmp/leap-413144749/cacert.pem --cert /tmp/leap-413144749/openvpn.pem --key /tmp/leap-413144749/openvpn.pem --persist-tun --float]
2022/06/19 08:42:32 Cannot find any usable polkit
2022/06/19 08:42:33 ERROR: no polkit
qml: errors, setting root.error
qrc:/components/InitErrors.qml:39: ReferenceError: splashSpinner is not defined
qrc:/components/InitErrors.qml:38:13: QML PropertyChanges: Cannot assign to non-existent property "visible"
qml: errors, setting root.error
2022/06/19 08:42:33 New connection into the management
qml: errors, setting root.error
qml: errors, setting root.error
2022/06/19 08:42:34 Event: INFO: OpenVPN Management Interface Version 3 -- type 'help' for more info
qml: errors, setting root.error


I'm running sys-apps/openrc-0.44.10::gentoo and sys-auth/elogind-246.10-r2::gentoo, but I don't have any of the graphical polkit agents installed, so I want to try using pkttyagent.

According to busctl the polkit daemon is listening on DBus:
Code:
$ busctl
NAME                           PID PROCESS        USER    CONNECTION    UNIT     SESSION DESCRIPTION
:1.0                          4873 bluealsa       root    :1.0          bluealsa -       -
:1.1                          4884 upowerd        root    :1.1          dbus     -       -
:1.10                         5790 pulseaudio     x       :1.10         2        -       -
:1.11                         5828 awesome        x       :1.11         2        -       -
:1.12                         5852 keepassxc      x       :1.12         2        -       -
:1.2                          4900 elogind-daemon root    :1.2          elogind  -       -
:1.38                        16140 busctl         x       :1.38         2        -       -
:1.4                          5769 X              x       :1.4          2        -       -
:1.6                          5794 rtkit-daemon   root    :1.6          dbus     -       -
:1.7                          5798 polkitd        polkitd :1.7          dbus     -       -
fi.w1.wpa_supplicant1            - -              -       (activatable) -        -       -
org.bluealsa                  4873 bluealsa       root    :1.0          bluealsa -       -
org.freedesktop.Avahi            - -              -       (activatable) -        -       -
org.freedesktop.DBus          4843 n/a            root    -             -        -       -
org.freedesktop.GeoClue2         - -              -       (activatable) -        -       -
org.freedesktop.PolicyKit1    5798 polkitd        polkitd :1.7          dbus     -       -
org.freedesktop.RealtimeKit1  5794 rtkit-daemon   root    :1.6          dbus     -       -
org.freedesktop.UDisks2          - -              -       (activatable) -        -       -
org.freedesktop.UPower        4884 upowerd        root    :1.1          dbus     -       -
org.freedesktop.login1        4900 elogind-daemon root    :1.2          elogind  -       -
org.gnome.GConf.Defaults         - -              -       (activatable) -        -       -


Now I'm not exactly sure how to start pkttyagent. In the manpage it says

Quote:
pkttyagent is used to start a textual authentication agent for the subject specified by either --process or --system-bus-name. If neither of these options are given, the parent process is used.


Just calling "pkttyagent" would then take the shell as parent process, I suppose. On trying, it starts without an error, but - as expected - still no polkit agent can be found. About the other two options I am unsure how to use them: Would I need to start riseup-vpn and then quickly run "pkttyagent --process `pidof riseup-vpn`"? This does not seem right (and it does not work).

When trying to specify the system bus (which one would be the right one?), I get the following:

Code:
$ pkttyagent --system-bus-name=org.freedesktop.PolicyKit1

** (pkttyagent:26484): CRITICAL **: 09:06:05.395: polkit_system_bus_name_new: assertion 'g_dbus_is_unique_name (name)' failed
^C
$ pkttyagent --system-bus-name=org.freedesktop.DBus

** (pkttyagent:27715): CRITICAL **: 09:06:14.404: polkit_system_bus_name_new: assertion 'g_dbus_is_unique_name (name)' failed


It's probably just a small thing I'm missing here. Does anybody here know how to use pkttyagent properly?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum