[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] seccomp: exit if seccomp_init() fails
From: |
Corey Bryant |
Subject: |
[Qemu-devel] [PATCH] seccomp: exit if seccomp_init() fails |
Date: |
Wed, 18 Dec 2013 11:48:11 -0500 |
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;
}
--
1.8.1.4
- [Qemu-devel] [PATCH] seccomp: exit if seccomp_init() fails,
Corey Bryant <=