]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix building domain def in securityselinuxtest
authorJim Fehlig <jfehlig@suse.com>
Wed, 16 Aug 2017 21:45:54 +0000 (15:45 -0600)
committerJim Fehlig <jfehlig@suse.com>
Mon, 21 Aug 2017 15:10:31 +0000 (09:10 -0600)
commitff7e0a1a40d69d69613d8fb88eb0263fc1121a8d
treed12130e271b41f2adbc9093850f7c62cdbb63180
parent6134dc2a6b2cca3776b6dcc6ed7ed46979a44532
Fix building domain def in securityselinuxtest

The virDomainDef created by testBuildDomainDef in securityselinuxtest
adds a seclabel but does not increment nseclabels. Also, it should
populate seclabel->model with 'selinux'.

While at it, use the secdef itself to populate values instead of
the indirection through def->seclabels[0].
tests/securityselinuxtest.c