mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
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>
This commit is contained in:
parent
f8251db121
commit
2a13f99112
1 changed files with 1 additions and 0 deletions
|
@ -231,6 +231,7 @@ int seccomp_start(void)
|
|||
|
||||
ctx = seccomp_init(SCMP_ACT_KILL);
|
||||
if (ctx == NULL) {
|
||||
rc = -1;
|
||||
goto seccomp_return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue