Re: [libvirt] [PATCH 7/7] Convert polkit code to use DBus API instead of CLI helper

2014-09-12 Thread Michal Privoznik
On 10.09.2014 16:21, Daniel P. Berrange wrote: 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

[libvirt] [PATCH 7/7] Convert polkit code to use DBus API instead of CLI helper

2014-09-10 Thread Daniel P. Berrange
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