]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't error when attaching security label of model "none"
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 13 Jul 2016 10:16:45 +0000 (11:16 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 3 Aug 2016 09:58:31 +0000 (10:58 +0100)
commit24555136bf42e14f81c4fe1106e36052cb7b32cc
tree9e050f126ee4457e4d22642aa831126e1e5f0766
parent9cf3c44ff5eda619405dfdbe6d614557baf30375
Don't error when attaching security label of model "none"

If you invoke virDomainLxcEnterSecurityLabel() on security
model of "none" it will report an error. Logically a "none"
security model should be treated as a no-op, so we should
just return success immediately, instead of an error.

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