]> git.ipfire.org Git - thirdparty/libvirt.git/commit
selinux: Resolve resource leak using the default disk label
authorJohn Ferlan <jferlan@redhat.com>
Fri, 18 Jan 2013 14:34:13 +0000 (09:34 -0500)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jan 2013 13:34:12 +0000 (14:34 +0100)
commit05cc03518987fa0f8399930d14c1d635591ca49b
tree8d5a5ad50dff15b82967b394c11be5d47033b03d
parente786b57889514457ba5c0a00042b15a5fce34f35
selinux: Resolve resource leak using the default disk label

Commit id a994ef2d1 changed the mechanism to store/update the default
security label from using disk->seclabels[0] to allocating one on the
fly. That change allocated the label, but never saved it.  This patch
will save the label. The new virDomainDiskDefAddSecurityLabelDef() is
a copy of the virDomainDefAddSecurityLabelDef().
src/conf/domain_conf.c
src/conf/domain_conf.h
src/security/security_selinux.c