mirror of https://github.com/xemu-project/xemu.git
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>
(cherry picked from commit 2a13f99112
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
c2f6dc66bc
commit
109b2439f0
|
@ -230,6 +230,7 @@ int seccomp_start(void)
|
|||
|
||||
ctx = seccomp_init(SCMP_ACT_KILL);
|
||||
if (ctx == NULL) {
|
||||
rc = -1;
|
||||
goto seccomp_return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue