]> xenbits.xensource.com Git - libvirt.git/commit
Avoid segfault in virt-aa-helper when handling read-only filesystems
authorRufo Dogav <rufo@rufoa.com>
Wed, 24 Aug 2016 23:15:29 +0000 (00:15 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 7 Sep 2016 20:29:02 +0000 (16:29 -0400)
commitb3c1bcb9fdd26db99289ade8a828de831d0c9de4
tree1156d3d820f27556bbed8e0554f18d7e1cbc21d6
parented8ba91ef20e85db87dadce0eb7ff3aa15ad88e6
Avoid segfault in virt-aa-helper when handling read-only filesystems

This patch fixes a segfault in virt-aa-helper caused by attempting to
modify a static string literal. It is triggered when a domain has a
<filesystem> with type='mount' configured read-only and libvirt is
using the AppArmor security driver for sVirt confinement. An "R" is
passed into the function and converted to 'r'.
src/security/virt-aa-helper.c