]> git.ipfire.org Git - thirdparty/libvirt.git/commit
selinux: Don't fail RestoreAll if file doesn't have a default label
authorCole Robinson <crobinso@redhat.com>
Sat, 20 Oct 2012 19:57:28 +0000 (15:57 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 23 Oct 2012 15:45:24 +0000 (11:45 -0400)
commit767be8be7226abe9a242c812ba5ff28108d2955c
treeba4e6f5b7de8b80f24e14691531d4f40991ce775
parentadd633bdf90b979f3dc4882867a5ab99a87e38bb
selinux: Don't fail RestoreAll if file doesn't have a default label

When restoring selinux labels after a VM is stopped, any non-standard
path that doesn't have a default selinux label causes the process
to stop and exit early. This isn't really an error condition IMO.

Of course the selinux API could be erroring for some other reason
but hopefully that's rare enough to not need explicit handling.

Common example here is storing disk images in a non-standard location
like under /mnt.
src/security/security_selinux.c