libvirt/src/access
Daniel P. Berrange 922b7fda77 Add support for using 3-arg pkcheck syntax for process (CVE-2013-4311)
With the existing pkcheck (pid, start time) tuple for identifying
the process, there is a race condition, where a process can make
a libvirt RPC call and in another thread exec a setuid application,
causing it to change to effective UID 0. This in turn causes polkit
to do its permission check based on the wrong UID.

To address this, libvirt must get the UID the caller had at time
of connect() (from SO_PEERCRED) and pass a (pid, start time, uid)
triple to the pkcheck program.

This fix requires that libvirt is re-built against a version of
polkit that has the fix for its CVE-2013-4288, so that libvirt
can see 'pkg-config --variable pkcheck_supports_uid polkit-gobject-1'

Signed-off-by: Colin Walters <walters@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-09-18 15:13:42 +01:00
..
genpolkit.pl Add a policy kit access control driver 2013-06-24 15:24:36 +01:00
viraccessdriver.h Define basic internal API for access control 2013-06-24 15:24:36 +01:00
viraccessdrivernop.c Define basic internal API for access control 2013-06-24 15:24:36 +01:00
viraccessdrivernop.h Define basic internal API for access control 2013-06-24 15:24:36 +01:00
viraccessdriverpolkit.c Add support for using 3-arg pkcheck syntax for process (CVE-2013-4311) 2013-09-18 15:13:42 +01:00
viraccessdriverpolkit.h Add a policy kit access control driver 2013-06-24 15:24:36 +01:00
viraccessdriverstack.c Adapt to VIR_ALLOC and virAsprintf in src/access/* 2013-07-10 11:07:31 +02:00
viraccessdriverstack.h Define basic internal API for access control 2013-06-24 15:24:36 +01:00
viraccessmanager.c Adapt to VIR_ALLOC and virAsprintf in src/access/* 2013-07-10 11:07:31 +02:00
viraccessmanager.h Define basic internal API for access control 2013-06-24 15:24:36 +01:00
viraccessperm.c Fix naming of permission for detecting storage pools 2013-09-12 17:20:07 +01:00
viraccessperm.h Fix polkit permission names for storage pools, vols & node devices 2013-09-12 11:15:52 +01:00