From patchwork Mon Sep 24 18:10:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jann Horn via Selinux X-Patchwork-Id: 10612767 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E7389112B for ; Mon, 24 Sep 2018 18:11:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D37A72A00F for ; Mon, 24 Sep 2018 18:11:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C50EA2A1F6; Mon, 24 Sep 2018 18:11:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from uhil19pa11.eemsg.mail.mil (uhil19pa11.eemsg.mail.mil [214.24.21.84]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA256 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 072712A135 for ; Mon, 24 Sep 2018 18:11:44 +0000 (UTC) X-EEMSG-check-008: 339485125|UHIL19PA11_EEMSG_MP9.csd.disa.mil Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.2]) by uhil19pa11.eemsg.mail.mil with ESMTP/TLS/DHE-RSA-AES256-SHA256; 24 Sep 2018 18:11:38 +0000 X-IronPort-AV: E=Sophos;i="5.54,298,1534809600"; d="scan'208";a="16163115" IronPort-PHdr: 9a23:Q9K6Dh2GXpi2gD/msmDT+DRfVm0co7zxezQtwd8Zse8ULP7xwZ3uMQTl6Ol3ixeRBMOHs60C07KempujcFRI2YyGvnEGfc4EfD4+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6UwrjNCfEnUgAJVQ7r0uKIHigYEVN52o1NDGWKxOGI44DrKTrpVjKiXCPML9jWTT6oOU1hnMy9kRBO1wppucaOznf9bqmNGgj99oP8y3jxkXhS8uirsqLkW1DI9/rG4qDUBuXtYTuWRkyfIFU9PzPIUgqcAE3zi80CzYGEfbIvu57lqPcbg9Ywm43QlexUjfjYGUP+mCy7qiqOHHI2PvMhbhB6Xt8XEdaWzIjQKNrQh1RLjQGBw0hPQnBZt7GQGQzat4cQ6JIqjI8YlxyupGW/ddFoW5KNGrtfx5hY3S74tZFdgxnhz+tSWTS0KAsrUEiA6iRZ3U2hcdIN/7ko8FqIryhWSt61L4AAfYH+AFIKm0obXmsjM1D82StI8lUzMoajQoJIh0zVGgdpw4zCPs3Raae3RG/RhBnn1y5cXnffzY/Srr/AvVJptyLPnVuQLdMak5z3li91RRka5y+FGTBKCO+gZy+KGXg== X-IPAS-Result: A2CJAADnJ6lb/wHyM5BbHAEBAQQBAQcEAQGBU4E4KiqBCFwojGiLS5hcFAyBBANJFRgTAYgbITYWAQMBAQEBAQECAWwogjUMgngDAwECNxQgDgMJAQESLggIAwEtAwEFAQsRDgsFGASCQT8pAYFYAQKXPzyMOYRohSIShlCEFg4JP4FBgRKHXQESAWyFCwKIPoYAMUaNSgmQHgsXiGeGRZRiAgQCBAUCBQ8hgSgBMDQwcSsKGCkPO4EzGoEfkHRPewEBiX6CPQEB Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 24 Sep 2018 18:11:28 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus.infosec.tycho.ncsc.mil [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id w8OIB9PW017571; Mon, 24 Sep 2018 14:11:17 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id w8OIB8H0040545 for ; Mon, 24 Sep 2018 14:11:08 -0400 Received: from goalie.tycho.ncsc.mil (goalie.infosec.tycho.ncsc.mil [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id w8OIB8QN017569 for ; Mon, 24 Sep 2018 14:11:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1BXAAChJ6lbl3sWGNZbHgEGBwaBU4E4KieBZyiYM1IGih6NZoEkA1MLhGwCg1khNhYBAwEBAQEBAQIUAQEBAQEIFgZMhUUDA0ABATcBD1E0AQUBHBmDISkBgUsNAQKXPDyKHIIdgnUBAQWBe4ULCBKGUIJ7gRsXeYEHgRKGLQKBdjiFC4hAhjFGjUoJhQuLEwsXiGeGRZRiAgQCBAUCBQ8hgSgEYYEhTSMVgyeCGRqDT4pyT404AQE X-IPAS-Result: A1BXAAChJ6lbl3sWGNZbHgEGBwaBU4E4KieBZyiYM1IGih6NZoEkA1MLhGwCg1khNhYBAwEBAQEBAQIUAQEBAQEIFgZMhUUDA0ABATcBD1E0AQUBHBmDISkBgUsNAQKXPDyKHIIdgnUBAQWBe4ULCBKGUIJ7gRsXeYEHgRKGLQKBdjiFC4hAhjFGjUoJhQuLEwsXiGeGRZRiAgQCBAUCBQ8hgSgEYYEhTSMVgyeCGRqDT4pyT404AQE X-IronPort-AV: E=Sophos;i="5.54,298,1534824000"; d="scan'208";a="377190" Received: from emsm-gh1-uea11.ncsc.mil ([214.29.60.35]) by goalie.tycho.ncsc.mil with ESMTP; 24 Sep 2018 14:11:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BXAABzJ6lbl3sWGNZbHgEGBwaBU4E4KieBZyiYM1IGih6NZoEkA1MLhGwCg1khNhYBAwEBAQEBAQIBEwEBAQEBCBYGTAyCNSKCYgMDQAEBNwEPUTQBBQEcGYMhKQGBSw0BApc7PIocgh2CdQEBBYF7hQsIEoZQgnuBGxd5gQeBEoYtAoF2OIULiECGMUaNSgmFC4sTCxeIZ4ZFlGICBAIEBQIFDyGBKARhgSFNIxWDJ4IZGoNPinJPjTgBAQ X-IPAS-Result: A0BXAABzJ6lbl3sWGNZbHgEGBwaBU4E4KieBZyiYM1IGih6NZoEkA1MLhGwCg1khNhYBAwEBAQEBAQIBEwEBAQEBCBYGTAyCNSKCYgMDQAEBNwEPUTQBBQEcGYMhKQGBSw0BApc7PIocgh2CdQEBBYF7hQsIEoZQgnuBGxd5gQeBEoYtAoF2OIULiECGMUaNSgmFC4sTCxeIZ4ZFlGICBAIEBQIFDyGBKARhgSFNIxWDJ4IZGoNPinJPjTgBAQ X-IronPort-AV: E=Sophos;i="5.54,298,1534809600"; d="scan'208";a="18601725" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from usat3cpa13.eemsg.mail.mil ([214.24.22.123]) by emsm-gh1-uea11.NCSC.MIL with ESMTP; 24 Sep 2018 18:11:06 +0000 X-EEMSG-check-005: 0 X-EEMSG-check-006: 000-001;acf1009e-5bbe-479a-bd4e-4968a19f2a0f X-EEMSG-check-008: 23934872|USAT3CPA09_EEMSG_MP24.csd.disa.mil X-EEMSG-SBRS: 3.5 X-EEMSG-ORIG-IP: 209.85.210.176 X-EEMSG-check-002: true X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BvAAChJ6lbh7DSVdFbHQEBBQEHBQGBU4E4KoI2mDNSBooejWaBJANTC4RsAoNZGQcBBDIWAQMBAQEBAQEBAQETAQEBCA0JCBsOIwyCNSKCYgMDMgENAQE3AQ9RNAEFARwZgyEpAYFLDQGXPjyKHIIdgnUBAQWBe4ULCAkBCIZQgnuBGxd5gQeBEoYtAoIuhQuIQIYxRo1KCYULixMLF4hnhkWUYgIEAgQFAgUPIYEoBGGBIU0jFYMnghkag0+Kck+NOAEB X-IPAS-Result: A0BvAAChJ6lbh7DSVdFbHQEBBQEHBQGBU4E4KoI2mDNSBooejWaBJANTC4RsAoNZGQcBBDIWAQMBAQEBAQEBAQETAQEBCA0JCBsOIwyCNSKCYgMDMgENAQE3AQ9RNAEFARwZgyEpAYFLDQGXPjyKHIIdgnUBAQWBe4ULCAkBCIZQgnuBGxd5gQeBEoYtAoIuhQuIQIYxRo1KCYULixMLF4hnhkWUYgIEAgQFAgUPIYEoBGGBIU0jFYMnghkag0+Kck+NOAEB Received: from mail-pf1-f176.google.com ([209.85.210.176]) by USAT3CPA09.eemsg.mail.mil with ESMTP/TLS/AES128-SHA; 24 Sep 2018 18:11:04 +0000 Received: by mail-pf1-f176.google.com with SMTP id s5-v6so1582643pfj.7 for ; Mon, 24 Sep 2018 11:11:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=G2n/1S2ojJ+trxGCE0ckZwrO9+VQoSgcLt4WNRewWcg=; b=akty6WF/ACcZLsNof5VPBMLnNgbL92tVFDDce1LZWMHrj8X/4fzWuiuF7dATXEeosu yiqO9D1EHAwz3LFy2US5ax1I4rcopkMJx37E8hOmWHHshnjPMV80hUCvisI12mw9OqrQ /xwiznUjFR4UDZC/G2CIRKLsxAZPOTPfyuCoUa0HIX5fyDOVIQNcXuIy8s/l4HY0tx/t 143zodGhxgPgvuD4ExsRP5AWxRTIuLLV2PCgul440qOHXIIhEBZIisr39p6ZuRyUoJ4K YRoci3tGyBqi+kgMB+qfA4kGhMXgSStRiqyQSRbAI69Y7gHcm7keZKHdzIiKqy51H5bY MKFQ== X-Gm-Message-State: ABuFfoh9v3BZ/uRxcPydvNxhKxQIJFc89r0BUReucQUZakBoK0A/7EFC Ib6DzC5utVJtg+LlDPXk2ZCvXdoGBXPYkg== X-Google-Smtp-Source: ACcGV63y1m2cKA3069SkV0mE7n9Ih5xvyYSyU05YjRhqUJBAFxPcm3p7nr3PPY5mu/vb1XdMG+cBdQ== X-Received: by 2002:a63:9857:: with SMTP id l23-v6mr10715023pgo.321.1537812662633; Mon, 24 Sep 2018 11:11:02 -0700 (PDT) Received: from nick.mtv.corp.google.com ([2620:15c:201:2:a75c:4ec0:aa7c:32b]) by smtp.gmail.com with ESMTPSA id l127-v6sm1254pfc.55.2018.09.24.11.11.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 11:11:01 -0700 (PDT) X-EEMSG-check-009: 444-444 To: selinux@tycho.nsa.gov Date: Mon, 24 Sep 2018 11:10:52 -0700 Message-Id: <20180924181052.130507-2-nnk@google.com> X-Mailer: git-send-email 2.19.0.444.g18242da7ef-goog In-Reply-To: <20180924181052.130507-1-nnk@google.com> References: <20180924181052.130507-1-nnk@google.com> MIME-Version: 1.0 Subject: [PATCH 2/2] secilc: better error handling X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: From: Nick Kralevich via Selinux Reply-To: Nick Kralevich Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP Fix a situation where the secilc command line tool could return success even though the compilation failed. $ secilc /dev/null -o /dev/null -f /dev/null Failure reading file: /dev/null $ echo $? 0 Signed-off-by: Nick Kralevich Signed-off-by: Nick Kralevich <nnk@google.com>
--- secilc/secilc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/secilc/secilc.c b/secilc/secilc.c index e1347205..ad6862ba 100644 --- a/secilc/secilc.c +++ b/secilc/secilc.c @@ -257,6 +257,7 @@ int main(int argc, char *argv[]) rc = stat(argv[i], &filedata); if (rc == -1) { fprintf(stderr, "Could not stat file: %s\n", argv[i]); + rc = SEPOL_ERR; goto exit; } file_size = filedata.st_size; @@ -265,6 +266,7 @@ int main(int argc, char *argv[]) rc = fread(buffer, file_size, 1, file); if (rc != 1) { fprintf(stderr, "Failure reading file: %s\n", argv[i]); + rc = SEPOL_ERR; goto exit; } fclose(file); @@ -345,11 +347,13 @@ int main(int argc, char *argv[]) if (file_contexts == NULL) { fprintf(stderr, "Failed to open file_contexts file\n"); + rc = SEPOL_ERR; goto exit; } if (fwrite(fc_buf, sizeof(char), fc_size, file_contexts) != fc_size) { fprintf(stderr, "Failed to write file_contexts file\n"); + rc = SEPOL_ERR; goto exit; }