From patchwork Mon Sep 24 18:10:51 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: 10612769 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 47A131390 for ; Mon, 24 Sep 2018 18:12:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3561B2A2C7 for ; Mon, 24 Sep 2018 18:12:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 271EE2A192; Mon, 24 Sep 2018 18:12:41 +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 ucol19pa12.eemsg.mail.mil (ucol19pa12.eemsg.mail.mil [214.24.24.85]) (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 47E5C2A192 for ; Mon, 24 Sep 2018 18:12:40 +0000 (UTC) X-EEMSG-check-008: 636555348|UCOL19PA12_EEMSG_MP10.csd.disa.mil X-IronPort-AV: E=Sophos;i="5.54,298,1534809600"; d="scan'208";a="636555348" Received: from emsm-gh1-uea11.ncsc.mil ([214.29.60.3]) by ucol19pa12.eemsg.mail.mil with ESMTP/TLS/DHE-RSA-AES256-SHA256; 24 Sep 2018 18:12:38 +0000 X-IronPort-AV: E=Sophos;i="5.54,298,1534809600"; d="scan'208";a="18601827" IronPort-PHdr: 9a23:wdlJSB8Qop7x8v9uRHKM819IXTAuvvDOBiVQ1KB60e8eIJqq85m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UIgoYy7Lm7npYVg9uSL/wvlaEUuMdfd9mSPLfrnBJ8oJtMK4PM0KbpJzttDtIr0o2AAAxYr8qsjNablXOnBFSW6vsvb4PkBcTUd54uU9KHmK9I3w+5zvBVatLiKmRCfoV8iicT6AUVEVoKCx+SQuv2JpyY7upgexHsmRekyN/uvcq0DtmSwCntC3xoaINxTIg+LaltDUOuXxFUv+SkyHWBlVf1P4Kl7sTC27+6VygZ3kOdIny4LxgJcT674kh4m8/bA4lfyIcWOSvFSDwg7mPAoyVv9JWnASNt9nWbb+vMSgSMawwyQntR3h4zgfTnRVl/XAVQjq+9t8kJYS8OcEjxiayH2jUakoMset1t57quFoKSvYmQU9wy2VklM6cT2sCQ9KcIWstihkYbjBicZlAoTwAHq0lnDeDvuES+AcXSDjTFYuh98/bmsKeilcnStI/4GPdpeWmnJou3WNkkNM88C+H8E8fc+3eTt8kVmP+0oZZ1PzWe+SmsudBTpBvjrumTqlRYYGY5WKq1cAyCQeezbMEEg/kPQ== X-IPAS-Result: A2A7AwCNKKlb/wHyM5BbHAEBAQQBAQcEAQGDCyoqgQhcFROMaItLmHAMgQQDShQYEwGBS4ZQITgUAQMBAQEBAQECAWwogjUMgn8CNxQgDgMJAhIuCAgDAS0DAQUBCwsUCwUYBIJBPykBgVgBApdAPIw5hGiFIhKGUIJ6gRwOCT+BQYhnCAELBwFshQsCiD6GADFGjUoJjFiDRgsXgWaHAYZFlGICBAIEBQIFDyGBOCE0MHErChgpDzuBMxqBH5B0T3sBAYlvDxeCJgEB Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by emsm-gh1-uea11.NCSC.MIL with ESMTP; 24 Sep 2018 18:12:36 +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 w8OICVPT017585; Mon, 24 Sep 2018 14:12:34 -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 w8OIBmkW040551 for ; Mon, 24 Sep 2018 14:11:48 -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 w8OIBmC0017579 for ; Mon, 24 Sep 2018 14:11:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1AOAgChJ6lblywbGNZbgz0qJ4FnKJgzUgaKHo16gRADUwuBd4J1g1shOBQBAwEBAQEBAQIUAQEBAQEGGAZMhgsBATcBgRQBBQE1gyEpAYFLDQEClzw8ihyCHYJ1AQEFgXuFCwgShlCCegGBGxd5gQeHPwKBJhQ8OIULiECGMUaNSgmFC4dNg0YLF4FmhwGGRZRiAgQCBAUCBQ8hgThVgSFNIxU7gmyCM4NPinJPimyCTAEB X-IPAS-Result: A1AOAgChJ6lblywbGNZbgz0qJ4FnKJgzUgaKHo16gRADUwuBd4J1g1shOBQBAwEBAQEBAQIUAQEBAQEGGAZMhgsBATcBgRQBBQE1gyEpAYFLDQEClzw8ihyCHYJ1AQEFgXuFCwgShlCCegGBGxd5gQeHPwKBJhQ8OIULiECGMUaNSgmFC4dNg0YLF4FmhwGGRZRiAgQCBAUCBQ8hgThVgSFNIxU7gmyCM4NPinJPimyCTAEB X-IronPort-AV: E=Sophos;i="5.54,298,1534824000"; d="scan'208";a="377191" Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.34]) by goalie.tycho.ncsc.mil with ESMTP; 24 Sep 2018 14:11:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0APAgDnJ6lblywbGNZbgz0qJ4FnKJgzUgaKHo16gRADUwuBd4J1g1shOBQBAwEBAQEBAQIBEwEBAQEBBhgGTAyCNSKDKAEBNwGBFAEFATWDISkBgUsNAQKXPzyKHIIdgnUBAQWBe4ULCBKGUIJ6AYEbF3mBB4c/AoEmFDw4hQuIQIYxRo1KCYULh02DRgsXgWaHAYZFlGICBAIEBQIFDyGBOFWBIU0jFTuCbIIzg0+Kck+KbIJMAQE X-IPAS-Result: A0APAgDnJ6lblywbGNZbgz0qJ4FnKJgzUgaKHo16gRADUwuBd4J1g1shOBQBAwEBAQEBAQIBEwEBAQEBBhgGTAyCNSKDKAEBNwGBFAEFATWDISkBgUsNAQKXPzyKHIIdgnUBAQWBe4ULCBKGUIJ6AYEbF3mBB4c/AoEmFDw4hQuIQIYxRo1KCYULh02DRgsXgWaHAYZFlGICBAIEBQIFDyGBOFWBIU0jFTuCbIIzg0+Kck+KbIJMAQE X-IronPort-AV: E=Sophos;i="5.54,298,1534809600"; d="scan'208";a="16163128" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from updc3cpa05.eemsg.mail.mil ([214.24.27.44]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 24 Sep 2018 18:11:46 +0000 X-EEMSG-check-005: 0 X-EEMSG-check-006: 000-001;dcd444eb-fa57-46c6-a200-73b3130b30a8 X-EEMSG-check-008: 339400480|UPBD19PA04_EEMSG_MP4.csd.disa.mil X-EEMSG-SBRS: -0.2 X-EEMSG-ORIG-IP: 209.85.215.195 X-EEMSG-check-002: true X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AVDgBzJ6lbYsPXVdFbgz0qKoIMmDNPAwaKHo16gRADUwsTgWSCdYNbGQcBBDQUAQMBAQEBAQEBAQEGGAsMBR0MJQyCNSKDGgENAQE3AYEUAQUBFh+DISkBgUsNAZc9PIocgh2CdQEBBYF7hQsICQEIhlCCegGBGxd5gQeHPwKBJhR0hQuIQIYxRo1KCYULh02DRgsXgWaHAYZFlGICBAIEBQIFDyGBOFWBIU0jFTuCbIYCinJPimyCTAEB X-IPAS-Result: A0AVDgBzJ6lbYsPXVdFbgz0qKoIMmDNPAwaKHo16gRADUwsTgWSCdYNbGQcBBDQUAQMBAQEBAQEBAQEGGAsMBR0MJQyCNSKDGgENAQE3AYEUAQUBFh+DISkBgUsNAZc9PIocgh2CdQEBBYF7hQsICQEIhlCCegGBGxd5gQeHPwKBJhR0hQuIQIYxRo1KCYULh02DRgsXgWaHAYZFlGICBAIEBQIFDyGBOFWBIU0jFTuCbIYCinJPimyCTAEB Received: from mail-pg1-f195.google.com ([209.85.215.195]) by upbd19pa04.eemsg.mail.mil with ESMTP/TLS/AES128-SHA; 24 Sep 2018 18:11:08 +0000 Received: by mail-pg1-f195.google.com with SMTP id n31-v6so2629622pgm.7 for ; Mon, 24 Sep 2018 11:11:07 -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:mime-version :content-transfer-encoding; bh=JUwdUy6B6GAo6KwLpmz+dlWdGlw7pkx9S9gl4bAhsik=; b=gMk/A6sWWnbZ8zFXHbj/r12gNuIbwD78qmQ6BnioDt3kkN8gjR/HKQUXX557/QzRuE 9uMzN6W3igx+o9HlskPllLQ3HCCff7S4M1MozQwKD6g5Y2X0a3mbTY2vvVAwVVununyh WcKHGX0coBVeflkEf4DNPuyR8ixKZmGMrp8Jy+6XM2F303BUCxiNBocOlolUIFvUqWcE 15TMoBN6a8gIkGxNz3t9OGJr7JuigMl4cBQtddvtDfXbm1LINjPNFJFMvu6yUijuOd5N B/pTD5yoltiTv4a+WQgyv7/K3z5xS1vJpAbs++Z6I+2xxRLlKOyP/N5GXyhZx7aZy5yd SyoQ== X-Gm-Message-State: ABuFfogmwtl3yX0LGw4x7tMypeEbKgE37Hgs4tumt9zkUEYK5zlEQHbu hzRQ4PPN3/YnFvxrljfFMSXL0IZIJNE8CA== X-Google-Smtp-Source: ACcGV61zFpZosGFINhYWKfvBTzge5gE8DHhhQ6XJl5dF7IH7+8cXvZ3KRrw48G67XZlaHYTkpCdpRA== X-Received: by 2002:a17:902:7b83:: with SMTP id w3-v6mr1221568pll.285.1537812660697; Mon, 24 Sep 2018 11:11:00 -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.10.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 11:11:00 -0700 (PDT) X-EEMSG-check-009: 444-444 To: selinux@tycho.nsa.gov Date: Mon, 24 Sep 2018 11:10:51 -0700 Message-Id: <20180924181052.130507-1-nnk@google.com> X-Mailer: git-send-email 2.19.0.444.g18242da7ef-goog MIME-Version: 1.0 Subject: [PATCH 1/2] whitespace and spelling cleanup 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 Signed-off-by: Nick Kralevich --- libsepol/include/sepol/errcodes.h | 2 +- secilc/secilc.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libsepol/include/sepol/errcodes.h b/libsepol/include/sepol/errcodes.h index 0136564a..6e9ff316 100644 --- a/libsepol/include/sepol/errcodes.h +++ b/libsepol/include/sepol/errcodes.h @@ -12,7 +12,7 @@ extern "C" { #define SEPOL_OK 0 /* These first error codes are defined for compatibility with - * previous version of libsepol. In the future, custome error + * previous version of libsepol. In the future, custom error * codes that don't map to system error codes should be defined * outside of the range of system error codes. */ diff --git a/secilc/secilc.c b/secilc/secilc.c index 0be6975b..e1347205 100644 --- a/secilc/secilc.c +++ b/secilc/secilc.c @@ -1,16 +1,16 @@ /* * Copyright 2011 Tresys Technology, LLC. All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO @@ -21,7 +21,7 @@ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Tresys Technology, LLC. @@ -259,7 +259,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "Could not stat file: %s\n", argv[i]); goto exit; } - file_size = filedata.st_size; + file_size = filedata.st_size; buffer = malloc(file_size); rc = fread(buffer, file_size, 1, file); @@ -347,7 +347,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "Failed to open file_contexts file\n"); goto exit; } - + if (fwrite(fc_buf, sizeof(char), fc_size, file_contexts) != fc_size) { fprintf(stderr, "Failed to write file_contexts file\n"); goto exit; 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+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwdFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9Qr4uWTSm8qxlVhnmhikaPDI96W3bl9B8gKddrR2muxFyzZLYbJyMOPZiY6/WYNcWSXdBU8pUUSFKH4GyYJYVD+cZI+hWoYrzqVwMohuwC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3U2hcdIN/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; }