diff options
author | Corey Bryant <coreyb@linux.vnet.ibm.com> | 2013-12-18 11:48:11 -0500 |
---|---|---|
committer | Eduardo Otubo <otubo@linux.vnet.ibm.com> | 2013-12-20 16:38:29 -0200 |
commit | 2a13f991123fa16841e6d94b02a9cc2c76d91725 (patch) | |
tree | b99b205aac67e063cbdd38420923a2d51b908557 | |
parent | f8251db121c3f051b22a7536b97d160c30bcccd4 (diff) | |
download | qemu-2a13f991123fa16841e6d94b02a9cc2c76d91725.tar.gz qemu-2a13f991123fa16841e6d94b02a9cc2c76d91725.tar.bz2 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>
-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; } |