• E
    conf: split security label structs to util/ · 3e929386
    Eric Blake 提交于
    In order to reuse the newly-created host-side disk struct in
    the virstoragefile backing chain code, I first have to move
    it to util/.  This starts the process, by first moving the
    security label structures.
    
    * src/conf/domain_conf.h (virDomainDefGenSecurityLabelDef)
    (virDomainDiskDefGenSecurityLabelDef, virSecurityLabelDefFree)
    (virSecurityDeviceLabelDefFree, virSecurityLabelDef)
    (virSecurityDeviceLabelDef): Move...
    * src/util/virseclabel.h: ...to new file.
    (virSecurityLabelDefNew, virSecurityDeviceLabelDefNew): Rename the
    GenSecurity functions.
    * src/qemu/qemu_process.c (qemuProcessAttach): Adjust callers.
    * src/security/security_manager.c (virSecurityManagerGenLabel):
    Likewise.
    * src/security/security_selinux.c
    (virSecuritySELinuxSetSecurityFileLabel): Likewise.
    * src/util/virseclabel.c: New file.
    * src/conf/domain_conf.c: Move security code, and fix fallout.
    * src/Makefile.am (UTIL_SOURCES): Build new file.
    * src/libvirt_private.syms (domain_conf.h): Move symbols...
    (virseclabel.h): ...to new section.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    3e929386
security_manager.c 21.5 KB