From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGlK5-0006H6-6X for qemu-devel@nongnu.org; Fri, 21 Feb 2014 03:19:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGlJr-0001oA-J2 for qemu-devel@nongnu.org; Fri, 21 Feb 2014 03:19:05 -0500 Received: from e36.co.us.ibm.com ([32.97.110.154]:43370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGlJr-0001nu-Bu for qemu-devel@nongnu.org; Fri, 21 Feb 2014 03:18:51 -0500 Received: from /spool/local by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Feb 2014 01:18:51 -0700 From: Michael Roth Date: Fri, 21 Feb 2014 02:17:13 -0600 Message-Id: <1392970647-21528-38-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1392970647-21528-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1392970647-21528-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 37/51] seccomp: exit if seccomp_init() fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lersek@redhat.com, qemu-stable@nongnu.org, Petar.Jovanovic@imgtec.com From: Corey Bryant This fixes a bug where we weren't exiting if seccomp_init() failed. Signed-off-by: Corey Bryant Acked-by: Eduardo Otubo Acked-by: Paul Moore (cherry picked from commit 2a13f991123fa16841e6d94b02a9cc2c76d91725) Signed-off-by: Michael Roth --- qemu-seccomp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index 69cee44..7c7b474 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -230,6 +230,7 @@ int seccomp_start(void) ctx = seccomp_init(SCMP_ACT_KILL); if (ctx == NULL) { + rc = -1; goto seccomp_return; } -- 1.7.9.5