Benedikt Heine
2016-01-04 14:44:10 UTC
Hi all,
I want to use libvirtd and polkit to create simple access restricitions for
incoming TLS connections.
SASL and TLS in combination is already working without any faults. After
activating access_drivers, the setup breaks, cause the access is denied.
problem to communication with libvirtd and polkit (via pkttyagent).
Additionally, what I found: After every libvirtd-restart the unit polkit.service
loggs an Registered and directly after an Unregsitered Auth Agent.
--fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale
C)
/org/freedesktop/PolicyKit1/AuthenticationAgent, locale C) (disconnected from
bus)
(Correct! In the first second it registers and shortly it unregisteres again)
Could someone please provide me a hint how to make libvirtd and polkit talk to
each other?
Sincerely,
Bene
polkit-version: 0.113
libvirt-version: 1.3.0
Running on Archlinux (init: systemd)
I want to use libvirtd and polkit to create simple access restricitions for
incoming TLS connections.
...
auth_tls = "sasl"
access_drivers = [ "polkit" ]
...
tls_no_verify_certificate = 1auth_tls = "sasl"
access_drivers = [ "polkit" ]
...
SASL and TLS in combination is already working without any faults. After
activating access_drivers, the setup breaks, cause the access is denied.
Please enter your password:
Welcome to virsh, the virtualization interactive terminal.
...
Please enter your password:
error: failed to connect to the hypervisor
error: access denied
I deactivated any self-written polkit-rules and had been able to track down theWelcome to virsh, the virtualization interactive terminal.
...
Please enter your password:
error: failed to connect to the hypervisor
error: access denied
problem to communication with libvirtd and polkit (via pkttyagent).
Jan 04 15:12:41 vm0 libvirtd[17075]: Unable to verify TLS peer: No certificate
was found.Jan 04 15:12:41 vm0 libvirtd[17075]: Certificate check failed Unable to verify
TLS peer: No certificate was found.Jan 04 15:12:45 vm0 libvirtd[17075]: internal error: No UNIX process ID
availableJan 04 15:12:45 vm0 libvirtd[17075]: access denied
Jan 04 15:12:45 vm0 libvirtd[17075]: access denied
Jan 04 15:12:45 vm0 libvirtd[17075]: Cannot recv data: Input/output error
Jan 04 15:12:47 vm0 libvirtd[17075]: Unable to verify TLS peer: No certificate
was found.Jan 04 15:12:45 vm0 libvirtd[17075]: access denied
Jan 04 15:12:45 vm0 libvirtd[17075]: Cannot recv data: Input/output error
Jan 04 15:12:47 vm0 libvirtd[17075]: Unable to verify TLS peer: No certificate
Additionally, what I found: After every libvirtd-restart the unit polkit.service
loggs an Registered and directly after an Unregsitered Auth Agent.
Jan 04 15:28:29 vm0 polkitd[2670]: Registered Authentication Agent for unix-
process:17225:3691193 (system bus name :1.97 [/usr/bin/pkttyagent --notify-fd 4--fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale
C)
Jan 04 15:28:30 vm0 polkitd[2670]: Unregistered Authentication Agent for unix-
process:17225:3691193 (system bus name :1.97, object path/org/freedesktop/PolicyKit1/AuthenticationAgent, locale C) (disconnected from
bus)
(Correct! In the first second it registers and shortly it unregisteres again)
Could someone please provide me a hint how to make libvirtd and polkit talk to
each other?
Sincerely,
Bene
polkit-version: 0.113
libvirt-version: 1.3.0
Running on Archlinux (init: systemd)