qemu-devel
[Top][All Lists]
Advanced

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

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


From: Paul Moore
Subject: Re: [Qemu-devel] [PATCH] seccomp: exit if seccomp_init() fails
Date: Thu, 19 Dec 2013 10:59:39 -0500
User-agent: KMail/4.11.4 (Linux/3.12.4-gentoo; KDE/4.11.4; x86_64; ; )

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 <address@hidden>
> ---
>  qemu-seccomp.c | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Paul Moore <address@hidden>
 
> 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

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