]> xenbits.xensource.com Git - libvirt.git/commit
lxc: Move console checks in LXCProcessStart
authorLuyao Huang <lhuang@redhat.com>
Thu, 12 Feb 2015 19:43:26 +0000 (14:43 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 13 Feb 2015 18:44:52 +0000 (13:44 -0500)
commit72129907c1e6f35af5dadee48aa8a998e6fb7f68
treefd77355671e7729775530151d08e87a5c465d655
parentaee3b77c336b7ae54914e322239ffabee59d74eb
lxc: Move console checks in LXCProcessStart

https://bugzilla.redhat.com/show_bug.cgi?id=1176503

Move the two console checks - one for zero nconsoles present and the
other for an invalid console type to earlier in the processing rather than
getting after performing some setup that has to be undone for what amounts
to an invalid configuration.

This resolves the above bug since it's not not possible to have changed
the security labels when we cause the configuration check failure.
src/lxc/lxc_process.c