[Pkg-libvirt-maintainers] Bug#835563: libvirt-daemon-system: virt-aa-helper crashes with filesystem mounts
Felix Geyer
fgeyer at debian.org
Sat Aug 27 07:17:30 UTC 2016
Package: libvirt-daemon-system
Version: 2.1.0-2
Tags: patch
Hi,
virt-aa-helper segfaults when starting a VM with a read-only filesystem mount.
The issue is in line virt-aa-helper.c:774
> if ((sub = strchr(perms, 'R')) != NULL) {
> /* Don't write the invalid R permission, replace it with 'r' */
> sub[0] = 'r';
Esentially it overwrites parts of perms which is a const char* parameter.
Attached is a patch that fixes this issue. It first copies perms and then
modifies the local copy.
Cheers,
Felix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_crash_aa_helper.patch
Type: text/x-diff
Size: 1355 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20160827/b8fe1a05/attachment.patch>
More information about the Pkg-libvirt-maintainers
mailing list