[libvirt] [PATCH v2 1/2] Honour current sensitivity and category ranges in SELinux label generation
Eric Blake
eblake at redhat.com
Tue Aug 14 17:16:47 UTC 2012
On 08/14/2012 08:36 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> Currently the dynamic label generation code will create labels
> with a sensitivity of s0, and a category pair in the range
> 0-1023. This is fine when running a standard MCS policy because
> libvirtd will run with a label
>
> system_u:system_r:virtd_t:s0-s0:c0.c1023
>
> With custom policies though, it is possible for libvirtd to have
> a different sensitivity, or category range. For example
>
> system_u:system_r:virtd_t:s2-s3:c512.c1023
>
> In this case we must assign the VM a sensitivity matching the
> current lower sensitivity value, and categories in the range
> 512-1023
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/security/security_selinux.c | 106 ++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 102 insertions(+), 4 deletions(-)
Addressed my v1 findings, and I didn't spot anything else.
ACK.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120814/ff3ee753/attachment-0001.sig>
More information about the libvir-list
mailing list