Comment 29 for bug 628055

Revision history for this message
Jamie Strandboge (jdstrand) wrote : Re: Instances don't start correctly: Security Labeling error running aa_change_profile()

Turns out this was a missing #include in virt-aa-helper.c. In previous releases we did not need '#include <sys/stat.h>', but in libvirt 0.8.3 (presumably because of its embedded gnulib, which has functions for stat()) and the toolchain in maverick, we do.

Specifically, virt-aa-helper.c has in its buildlog:
security/virt-aa-helper.c: In function 'valid_path':
security/virt-aa-helper.c:541: warning: implicit declaration of function 'stat' [-Wimplicit-function-declaration]
security/virt-aa-helper.c:541: warning: nested extern declaration of 'stat' [-Wnested-externs]

Adding '#include <sys/stat.h>' to virt-aa-helper.c fixes both the warning and the problem. I will be uploading a new libvirt with this fix shortly.