]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't require secdrivers to implement .domainMoveImageMetadata
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 18 May 2020 08:07:30 +0000 (10:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 18 May 2020 08:08:10 +0000 (10:08 +0200)
commitcc8c297e473afd55e5d8e35e18345d8df176059d
tree8a4231efcc95efd8f8990300e270a3fdfbeea6cb
parent7cd141f94c5e58118d305d1eff1c6553870bd34c
Don't require secdrivers to implement .domainMoveImageMetadata

The AppArmor secdriver does not use labels to grant access to
resources. Therefore, it doesn't use XATTRs and hence it lacks
implementation of .domainMoveImageMetadata callback. This leads
to a harmless but needless error message appearing in the logs:

  virSecurityManagerMoveImageMetadata:476 : this function is not
  supported by the connection driver: virSecurityManagerMoveImageMetadata

Closes: https://gitlab.com/libvirt/libvirt/-/issues/25
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/security/security_manager.c