]> 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)
committerCole Robinson <crobinso@redhat.com>
Mon, 28 Jan 2013 19:13:12 +0000 (14:13 -0500)
commit8cdeb0f85ea28c408b73a59e7c78bfd6942e62d7
tree94ca65771d69381e8b316f9b0e2cc92aab52b404
parentf104a2a6b36aa6f4842c0a64354055657c0df8e2
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().
(cherry picked from commit 05cc03518987fa0f8399930d14c1d635591ca49b)

Conflicts:
src/conf/domain_conf.h
src/conf/domain_conf.c
src/conf/domain_conf.h
src/security/security_selinux.c