projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8251db
)
seccomp: exit if seccomp_init() fails
author
Corey Bryant
<coreyb@linux.vnet.ibm.com>
Wed, 18 Dec 2013 16:48:11 +0000
(11:48 -0500)
committer
Eduardo Otubo
<otubo@linux.vnet.ibm.com>
Fri, 20 Dec 2013 18:38:29 +0000
(16:38 -0200)
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>
qemu-seccomp.c
patch
|
blob
|
history
diff --git
a/qemu-seccomp.c
b/qemu-seccomp.c
index
cf07869
..
b7c1253
100644
(file)
--- 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;
}