Re: [libvirt] [PATCH] apparmor: avoid copying empty profile name

2019-09-13 Thread Michal Privoznik
On 9/9/19 6:26 PM, Jim Fehlig wrote: AppArmorGetSecurityProcessLabel copies the VM's profile name to the label member of virSecurityLabel struct. If the profile is not loaded, the name is set empty before calling virStrcpy to copy it. However, virStrcpy will fail if src is empty (0 length),

Re: [libvirt] [PATCH] apparmor: avoid copying empty profile name

2019-09-13 Thread Jim Fehlig
On 9/9/19 10:26 AM, Jim Fehlig wrote: > AppArmorGetSecurityProcessLabel copies the VM's profile name to the > label member of virSecurityLabel struct. If the profile is not loaded, > the name is set empty before calling virStrcpy to copy it. However, > virStrcpy will fail if src is empty (0

[libvirt] [PATCH] apparmor: avoid copying empty profile name

2019-09-09 Thread Jim Fehlig
AppArmorGetSecurityProcessLabel copies the VM's profile name to the label member of virSecurityLabel struct. If the profile is not loaded, the name is set empty before calling virStrcpy to copy it. However, virStrcpy will fail if src is empty (0 length), causing AppArmorGetSecurityProcessLabel to