|
From: | Eduardo Otubo |
Subject: | Re: [Qemu-devel] [PATCH] seccomp: exit if seccomp_init() fails |
Date: | Thu, 19 Dec 2013 09:35:06 -0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131028 Thunderbird/17.0.10 |
On 12/18/2013 02:48 PM, 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(+) 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; }
ACK. Reviewed-by: Eduardo Otubo <address@hidden> -- Eduardo Otubo IBM Linux Technology Center
[Prev in Thread] | Current Thread | [Next in Thread] |