]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
selinux: Fix incorrect object label generation.
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Mon, 20 Aug 2012 14:12:14 +0000 (16:12 +0200)
committerEric Blake <eblake@redhat.com>
Mon, 20 Aug 2012 16:07:22 +0000 (10:07 -0600)
commitb6ad2c2334398ba45a6011af7527478d3455e3cc
tree49417d6691b6b7c238d4bd5baac7f2d117d39987
parent521b7ab7eb1c88d228a4599cf2aecbda14371711
selinux: Fix incorrect object label generation.

This is a fix for the object label generation. It uses a new flag for
virSecuritySELinuxGenNewContext that specifies whether the context is
for an object. If so the context role remains unchanged.
Without this fix it is not possible to start domains with image file or
block device backed storage when selinux is enabled.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/security/security_selinux.c