[libvirt] [PATCH v3 1/2] security: introduce virSecurityManagerCheckAllLabel function

Ján Tomko jtomko at redhat.com
Fri Feb 13 13:50:32 UTC 2015


On Thu, Feb 12, 2015 at 06:32:40PM +0100, Erik Skultety wrote:
> We do have a check for valid per-domain security model, however we still
> do permit an invalid security model for a domain's device (those which
> are specified with <source> element).
> This patch introduces a new function virSecurityManagerCheckAllLabel
> which compares user specified security model against currently
> registered security drivers. That being said, it also permits 'none'
> being specified as a device security model.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1165485
> ---
>  src/libvirt_private.syms        |  1 +
>  src/lxc/lxc_process.c           |  3 ++
>  src/qemu/qemu_process.c         |  6 +++
>  src/security/security_manager.c | 89 +++++++++++++++++++++++++++++++++++++++++
>  src/security/security_manager.h |  2 +
>  5 files changed, 101 insertions(+)
> 

ACK

> +static int virSecurityManagerCheckSecurityModel(char *secmodel,
> +                                                void *opaque)

Only callbacks should use void *opaque.

The redundant 'Security' occurs twice in the function names.

I fixed the parameter types, and removed the extra word to save some
screen space and pushed the patch.

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150213/a6b9d085/attachment-0001.sig>


More information about the libvir-list mailing list