qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PULL 01/01] seccomp: exit if seccomp_init() fails


From: Eduardo Otubo
Subject: [Qemu-devel] [PULL 01/01] seccomp: exit if seccomp_init() fails
Date: Fri, 20 Dec 2013 16:50:47 -0200

From: Corey Bryant <address@hidden>

This fixes a bug where we weren't exiting if seccomp_init() failed.

Signed-off-by: Corey Bryant <address@hidden>
Acked-by: Eduardo Otubo <address@hidden>
Acked-by: Paul Moore <address@hidden>
---
 qemu-seccomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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.7.1




reply via email to

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