qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-stable] [Qemu-devel] [PATCH] seccomp: exit if seccomp_init() f


From: Michael Roth
Subject: Re: [Qemu-stable] [Qemu-devel] [PATCH] seccomp: exit if seccomp_init() fails
Date: Thu, 19 Dec 2013 14:41:34 -0600
User-agent: alot/0.3.4

Quoting Corey Bryant (2013-12-18 10:48:11)
> This fixes a bug where we weren't exiting if seccomp_init() failed.
> 
> Signed-off-by: Corey Bryant <address@hidden>

Cc'ing qemu-stable

> ---
>  qemu-seccomp.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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;
>      }
> 
> -- 
> 1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]