diff options
author | Corey Bryant | 2013-12-18 17:48:11 +0100 |
---|---|---|
committer | Eduardo Otubo | 2013-12-20 19:38:29 +0100 |
commit | 2a13f991123fa16841e6d94b02a9cc2c76d91725 (patch) | |
tree | b99b205aac67e063cbdd38420923a2d51b908557 /qemu-seccomp.c | |
parent | Merge remote-tracking branch 'agraf/tags/signed-ppc-for-upstream' into staging (diff) | |
download | qemu-2a13f991123fa16841e6d94b02a9cc2c76d91725.tar.gz qemu-2a13f991123fa16841e6d94b02a9cc2c76d91725.tar.xz qemu-2a13f991123fa16841e6d94b02a9cc2c76d91725.zip |
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>
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 cf07869599..b7c125364c 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; } |