]> Git Repo - qemu.git/blobdiff - qemu-seccomp.c
dataplane: fix shadowed return value
[qemu.git] / qemu-seccomp.c
index 69cee443afaff5813c5533c7739de0bb7e6d274f..b7c125364c6d7e77e7043b378a93d10d77d8113d 100644 (file)
@@ -114,6 +114,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(write), 244 },
     { SCMP_SYS(fcntl), 243 },
     { SCMP_SYS(tgkill), 242 },
+    { SCMP_SYS(kill), 242 },
     { SCMP_SYS(rt_sigaction), 242 },
     { SCMP_SYS(pipe2), 242 },
     { SCMP_SYS(munmap), 242 },
@@ -230,6 +231,7 @@ int seccomp_start(void)
 
     ctx = seccomp_init(SCMP_ACT_KILL);
     if (ctx == NULL) {
+        rc = -1;
         goto seccomp_return;
     }
 
This page took 0.023484 seconds and 4 git commands to generate.