At -O2 the function seems to be inlined which makes debugging a bit
harder.

This is the function returning the bad RC, but not only itself but also
most of its callees are inlined virSecurityGetRefCountAttrName
virSecurityGetAttrName virSecurityGetTimestampAttrName.

461         if (virFileGetXAttrQuiet(src, ref_name, &ref_value) < 0) {
(gdb) n
462             if (errno == ENOSYS || errno == ENOTSUP) {
(gdb) p errno
$32 = 38

Which matches ENOSYS
#define ENOSYS          38      /* Function not implemented */

So either DAC (in the apparmor context) doesn't use XATTR either an
fails on still trying (similar to [1] which removed trying to do so for
apparmor) or we have an issue with XATTR in the DAC implementation.

[1]:
https://gitlab.com/libvirt/libvirt/-/commit/cc8c297e473afd55e5d8e35e18345d8df176059d

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879325

Title:
  Unable to remove disk metadata on vm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1879325/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to