]> xenbits.xensource.com Git - libvirt.git/commit
Convert polkit code to use DBus API instead of CLI helper
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 10 Sep 2014 13:52:48 +0000 (14:52 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 24 Sep 2014 14:29:22 +0000 (15:29 +0100)
commit308c0c5a95209731b57a7a0512637d535f39e6e8
tree01d725e3abf9502697445a5dc1efbe23925dfc9d
parent88a2dc1f4c58060d4add0e2ea305200f4fdffcb3
Convert polkit code to use DBus API instead of CLI helper

Spawning the pkcheck program every time a permission check is
required is hugely expensive on CPU. The pkcheck program is just
a dumb wrapper for the DBus API, so rewrite the code to use the
DBus API directly. This also simplifies error handling a bit.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
cfg.mk
po/POTFILES.in
src/util/virpolkit.c
tests/Makefile.am
tests/virpolkittest.c [new file with mode: 0644]