diff options
author | Corey Bryant <coreyb@linux.vnet.ibm.com> | 2013-12-18 11:48:11 -0500 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2014-02-21 00:34:40 -0600 |
commit | 109b2439f01247b5c8a5313c367ec6b11cb46259 (patch) | |
tree | 48d964092238b6f35b246e7005b1d7855d81c2da /qemu-seccomp.c | |
parent | c2f6dc66bcdee73cc7fd14fd82f570ccce382a1f (diff) |
seccomp: exit if seccomp_init() fails
This fixes a bug where we weren't exiting if seccomp_init() failed.
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Acked-by: Eduardo Otubo <otubo@linux.vnet.ibm.com>
Acked-by: Paul Moore <pmoore@redhat.com>
(cherry picked from commit 2a13f991123fa16841e6d94b02a9cc2c76d91725)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qemu-seccomp.c')
-rw-r--r-- | qemu-seccomp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-seccomp.c b/qemu-seccomp.c index 69cee443af..7c7b4742a6 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -230,6 +230,7 @@ int seccomp_start(void) ctx = seccomp_init(SCMP_ACT_KILL); if (ctx == NULL) { + rc = -1; goto seccomp_return; } |