[libvirt] [PATCH] Use virFileResolveLink instead of readlink in AppArmor

Jamie Strandboge jamie at canonical.com
Thu Jan 21 16:49:54 UTC 2010

Was this patch tested? I initially tried to use virFileResolveLink() but
could not. This was discussed in "[libvirt] [PATCH 0/4] AppArmor
updates" from 11/12/2009:

"Implements all changes requested by DV except for getting rid of
readlink(). I can't use virFileResolveLink() because it lstat()s the
file and uses st.st_size to create a buffer. Unfortunately, running
lstat() on /proc/self/exe results in st.st_size to be 0."

Unless virFileResolveLink() was changed, this patch will break AppArmor.


Jamie Strandboge             | http://www.canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100121/3a06faf7/attachment-0001.sig>

More information about the libvir-list mailing list