]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Ensure LXC security driver is set unconditonally
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 1 May 2012 09:46:08 +0000 (10:46 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 1 May 2012 15:05:02 +0000 (16:05 +0100)
commit3746b070e79e5fe573f8b0bf32095a34f91b1eba
treef3169252dda7aba03b3a2b8742f63dff6e3882ff
parenteb06375a84c841b769ba4ca89f060ea72a66f1f8
Ensure LXC security driver is set unconditonally

The driver->securityDriverName field may be NULL, if automatic
probing is used to determine security driver. This meant that
unless selinux was explicitly requested in lxc.conf, it was
not being sent to the libvirt_lxc process.

The driver->securityManager field is guaranteed non-NULL, since
there will always be the 'none' security driver present if
nothing else exists. So use that to set the driver name for
libvirt_lxc

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_driver.c