]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: split security label structs to util/
authorEric Blake <eblake@redhat.com>
Wed, 26 Mar 2014 20:09:46 +0000 (14:09 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 1 Apr 2014 16:38:12 +0000 (10:38 -0600)
commit3e92938656953c0f33c811fa3846f81243c4059c
tree4d8c90784b5bb2faa0bc8caed48195f6e2a3eb7f
parentcbfd9a6170f4546b13c64501313e5cd09b296e42
conf: split security label structs to util/

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: Eric Blake <eblake@redhat.com>
src/Makefile.am
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_process.c
src/security/security_manager.c
src/security/security_selinux.c
src/util/virseclabel.c [new file with mode: 0644]
src/util/virseclabel.h [new file with mode: 0644]