]> git.ipfire.org Git - thirdparty/libvirt.git/commit
dac: Add a new func to get DAC label of a running process
authorLuyao Huang <lhuang@redhat.com>
Tue, 9 Dec 2014 08:33:57 +0000 (16:33 +0800)
committerJán Tomko <jtomko@redhat.com>
Thu, 11 Dec 2014 09:29:43 +0000 (10:29 +0100)
commitc7c96647e903f50273977d1514d3a2a8f713b6e7
tree3a4372400487c639fa05df76c27df362a15a0436
parent82977058f5b1d143a355079900029e9cbfee2fe4
dac: Add a new func to get DAC label of a running process

When using qemuProcessAttach to attach a qemu process,
the DAC label is not filled correctly.

Introduce a new function to get the uid:gid from the system
and fill the label.

This fixes the daemon crash when 'virsh screenshot' is called:
https://bugzilla.redhat.com/show_bug.cgi?id=1161831

It also fixes qemu-attach after the prerequisite of this patch
(commit f8c1fb3) was pushed out of order.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/security/security_dac.c