On Wednesday, December 18, 2013 11:48:11 AM Corey Bryant wrote:
> This fixes a bug where we weren't exiting if seccomp_init() failed.
> 
> Signed-off-by: Corey Bryant <cor...@linux.vnet.ibm.com>
> ---
>  qemu-seccomp.c | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Paul Moore <pmo...@redhat.com>
 
> diff --git a/qemu-seccomp.c b/qemu-seccomp.c
> index cf07869..b7c1253 100644
> --- a/qemu-seccomp.c
> +++ b/qemu-seccomp.c
> @@ -231,6 +231,7 @@ int seccomp_start(void)
> 
>      ctx = seccomp_init(SCMP_ACT_KILL);
>      if (ctx == NULL) {
> +        rc = -1;
>          goto seccomp_return;
>      }

-- 
paul moore
security and virtualization @ redhat


Reply via email to