libvirt/daemon
Daniel P. Berrange 77d448e15d 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>
(cherry picked from commit 922b7fda77)
Signed-off-by: Eric Blake <eblake@redhat.com>

Conflicts:
	configure.ac - context
	libvirt.spec.in - context of indentation
	src/access/viraccessdriverpolkit.c - not present on this branch
2013-09-18 08:36:01 -06:00
..
libvirtd-config.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
libvirtd-config.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
libvirtd.aug Fix mistakes in augeas lens 2012-05-28 11:00:01 +01:00
libvirtd.c call virstateCleanup to do the cleanup before libvirtd exits 2013-01-23 08:38:15 -07:00
libvirtd.conf docs: Enhance documentation of log_filters 2012-08-17 21:26:53 +02:00
libvirtd.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
libvirtd.init.in daemon: Remove deprecated HAL from init script dependencies 2012-03-02 16:32:37 +01:00
libvirtd.logrotate.in Add logrotate support for libvirtd.log 2011-03-04 22:43:55 +08:00
libvirtd.lxc.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.pod.in Update paths in man page to reflect libvirtd code 2012-08-15 21:40:39 +08:00
libvirtd.policy-0 Allow polkit auth for VNC and SSH users 2012-02-07 11:59:35 -05:00
libvirtd.policy-1 Allow polkit auth for VNC and SSH users 2012-02-07 11:59:35 -05:00
libvirtd.qemu.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.sasl daemon: Avoid 'Could not find keytab file' in syslog 2012-10-27 15:11:09 -04:00
libvirtd.service.in systemd: start libvirtd after network 2012-07-10 08:53:40 -06:00
libvirtd.sysconf daemon: Allow overriding NOFILES ulimit for the daemon as well 2012-02-01 16:04:30 +01:00
libvirtd.sysctl init: raise default system aio limits 2011-10-05 14:49:35 -06:00
libvirtd.uml.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.upstart daemon: Allow overriding NOFILES ulimit for the daemon as well 2012-02-01 16:04:30 +01:00
Makefile.am build: install libvirt sysctl file correctly 2013-01-07 11:26:53 -07:00
remote.c Add support for using 3-arg pkcheck syntax for process (CVE-2013-4311) 2013-09-18 08:36:01 -06:00
remote.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
stream.c Tweak EOF handling of streams 2013-06-11 18:28:23 -04:00
stream.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
test_libvirtd.aug.in Autogenerate augeas test case from default config files 2012-05-28 11:07:12 +01:00
THREADS.txt maint: use consistent file name for threading notes 2011-05-31 13:54:45 -06:00