aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@amazon.com>2014-01-09 13:56:27 -0800
committerAnthony Liguori <aliguori@amazon.com>2014-01-09 13:56:27 -0800
commit1d327fb4c72b898f7500989f3e624b7349581159 (patch)
treeee91ec37d08d898790a78cdacdf5188d75827a62
parent074dcc228a92de8285ada7d7a0f14549de7aacaa (diff)
parent2a13f991123fa16841e6d94b02a9cc2c76d91725 (diff)
downloadqemu-arm-1d327fb4c72b898f7500989f3e624b7349581159.tar.gz
Merge remote-tracking branch 'otubo/seccomp' into staging
* otubo/seccomp: seccomp: exit if seccomp_init() fails Message-id: 1387565447-24241-1-git-send-email-otubo@linux.vnet.ibm.com Signed-off-by: Anthony Liguori <aliguori@amazon.com>
-rw-r--r--qemu-seccomp.c1
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;
}