]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce API's for Polkit text authentication
authorJohn Ferlan <jferlan@redhat.com>
Tue, 9 Feb 2016 15:09:44 +0000 (10:09 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 1 Mar 2016 11:50:16 +0000 (06:50 -0500)
commit6fb96a7f8b2f4b0c488e340628a5b8f49382f9c2
tree6991c0a8c7411f3c618ee2dd4ba973fed5b9fc09
parent1d35f6ffe15f860914294f6a97de428d357a1fc9
util: Introduce API's for Polkit text authentication

Introduce virPolkitAgentCreate and virPolkitAgentDestroy

virPolkitAgentCreate will run the polkit pkttyagent image as an asynchronous
command in order to handle the local agent authentication via stdin/stdout.
The code makes use of the pkttyagent --notify-fd mechanism to let it know
when the agent is successfully registered.

virPolkitAgentDestroy will close the command effectively reaping our
child process
src/libvirt_private.syms
src/util/virpolkit.c
src/util/virpolkit.h