]> xenbits.xensource.com Git - libvirt.git/commit
qemu_cgroup: Allow /dev/mapper/control for PR
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 10 Apr 2018 06:00:59 +0000 (08:00 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 May 2018 07:02:56 +0000 (09:02 +0200)
commitd13179fe8d91100aa7f637e0e234138738b530e6
tree697d3bf2494624c069a1106df5cd20a4b9ae60f5
parent5bf89434ff9ff5ab00824e0e24aaf0fe2df1832c
qemu_cgroup: Allow /dev/mapper/control for PR

Just like in previous commit, qemu-pr-helper might want to open
/dev/mapper/control under certain circumstances. Therefore we
have to allow it in cgroups.

The change virdevmapper.c might look spurious but it isn't. After
6dd84f6850ca437 any path that we're allowing in deivces CGroup is
subject to virDevMapperGetTargets() inspection. And libdevmapper
returns ENXIO for the path from subject.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_cgroup.c
src/util/virdevmapper.c