]> xenbits.xensource.com Git - libvirt.git/commit
security: Remove security driver internals for disk labeling
authorPeter Krempa <pkrempa@redhat.com>
Wed, 23 Jan 2019 10:50:33 +0000 (11:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 30 Jan 2019 16:20:38 +0000 (17:20 +0100)
commit43479005ee2f835dbb867724080a0b5067ff5113
tree761aff4d2d87cae8307ebbd148975934d64720d2
parente7d14bf9653e29297979d91f7074ad2c5da1cf24
security: Remove security driver internals for disk labeling

Security labeling of disks consists of labeling of the disk image
itself and it's backing chain. Modify
virSecurityManager[Set|Restore]ImageLabel to take a boolean flag that
will label the full chain rather than the top image itself.

This allows to delete/unify some parts of the code and will also
simplify callers in some cases.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
cfg.mk
src/qemu/qemu_security.c
src/security/security_apparmor.c
src/security/security_dac.c
src/security/security_driver.h
src/security/security_manager.c
src/security/security_manager.h
src/security/security_nop.c
src/security/security_selinux.c
src/security/security_stack.c