From patchwork Tue Oct 16 08:25:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vit Mojzis X-Patchwork-Id: 10643221 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 112FE925 for ; Tue, 16 Oct 2018 08:27:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F07BD28A73 for ; Tue, 16 Oct 2018 08:27:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E346829980; Tue, 16 Oct 2018 08:27:18 +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 uhil19pa09.eemsg.mail.mil (uhil19pa09.eemsg.mail.mil [214.24.21.82]) (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 1E56A28A73 for ; Tue, 16 Oct 2018 08:27:17 +0000 (UTC) X-EEMSG-check-008: 325106714|UHIL19PA09_EEMSG_MP7.csd.disa.mil Received: from emsm-gh1-uea11.ncsc.mil ([214.29.60.3]) by uhil19pa09.eemsg.mail.mil with ESMTP/TLS/DHE-RSA-AES256-SHA256; 16 Oct 2018 08:27:16 +0000 X-IronPort-AV: E=Sophos;i="5.54,387,1534809600"; d="scan'208";a="19448115" IronPort-PHdr: 9a23:KKu5ehzNJeMAtprXCy+O+j09IxM/srCxBDY+r6Qd1uoSK/ad9pjvdHbS+e9qxAeQG9mDtLQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopT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zZ786tiZaeVXWnA1JR6b0v6YNihASUd58pUBBGGG9NXkg5zXZT6RVjaiQCPsT8jmJSKwBTVloYWtCREau1ZFvfaa5texWuWNB2CVmqb4l1CI1agG7vHjSpr5F/DUi6rCj/GEfvHtHXOSFuz3FBVVK0LIBiqJKWCWq0kC1fHRWNNi627JgP8m1sNB5uS5taAg/fyAAQeWrAj3xiKXNGIGUrdZAn0TQ4ZfTZri3dHkKP+1gjx/uQmNylA3XnRIu9WoPEVDCpNMnJYDoP8Ejy2LoHGXAb18D7+tPt9e5rl8ESuY6KBthzWxv39LBR3gLQ8rCSANXxhM8ZzBid5ROoQQfC7FumiyB67dD+QMGYSz8CImp+oDM28zP3CpYL59x3myDnqSendsx1WF93dZ97yqAonMXIvLdVM1+A2PbzIpTyeXiIf6qt7NiKsN90Lr0aPYZKYG4/HeunpVnXkjw3rMFA1+wK/MO3J/eQ37jU2CUWe2XNWOLmmVcUAb+4BCyJQgvYdxR5w8lZ+3FgJMUmwz6BLVzQCjR7VOO1mEvMeoGMQkxvYo= X-IPAS-Result: A2AoAACQn8Vb/wHyM5BkHAEBAQQBAQcEAQGBUQcBAQsBgVknA2YjXCiMDF+LTZkUFIFdFhgDEAGJMSE0DQ0BAwEBAQEBAQIBbBwMgjYkgmADAwECNxQgDgMJAQFACAgDAS0VEQ4LBRgEgn8BKAGBWAOnRIU6hGiLTBeBQT+IbwESAWyFDQKOPUCPLQmGGTyJewsXghuHA4cAli2BQzhkcU0jFTuCbAmLYIRvbYEFAQEciAaCPgEB Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by emsm-gh1-uea11.NCSC.MIL with ESMTP; 16 Oct 2018 08:27:14 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id w9G8RC7v024897; Tue, 16 Oct 2018 04:27:14 -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 w9G8Q31m003671 for ; Tue, 16 Oct 2018 04:26:03 -0400 Received: from goalie.tycho.ncsc.mil (goalie.tycho.ncsc.mil [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id w9G8Q32Q024878 for ; Tue, 16 Oct 2018 04:26:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1ATAABQn8Vbly0YGNZkHQEBBQEHBQGBUQgBCwGBWSdpfyiMDF+LTZkUgXoNGxGEQAKEbyE0DQ0BAwEBAQEBAQIUAQEBAQEGGAZMhUYDA4EJUVeDOQEoAYFYA6dChTqEaItMF4FBP4lvhQ0Cjj2PbQmGGTyJewsXghuHA4cAli2BQ4INTSMVgycJgisaiRuEb22BI4pEAQE X-IPAS-Result: A1ATAABQn8Vbly0YGNZkHQEBBQEHBQGBUQgBCwGBWSdpfyiMDF+LTZkUgXoNGxGEQAKEbyE0DQ0BAwEBAQEBAQIUAQEBAQEGGAZMhUYDA4EJUVeDOQEoAYFYA6dChTqEaItMF4FBP4lvhQ0Cjj2PbQmGGTyJewsXghuHA4cAli2BQ4INTSMVgycJgisaiRuEb22BI4pEAQE X-IronPort-AV: E=Sophos;i="5.54,387,1534824000"; d="scan'208";a="392915" Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.34]) by goalie.tycho.ncsc.mil with ESMTP; 16 Oct 2018 04:26:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0ATAAARoMVbly0YGNZkHQEBBQEHBQGBUQgBCwGBWSdpfyiMDF+LTZkUgXoNGxGEQAKEbyE0DQ0BAwEBAQEBAQIBEwEBAQEBBhgGTAyCNiKCYgMDgQlRV4M5ASgBgVgDp0iFOoRoi0wXgUE/iW+FDQKOPY9tCYYZPIl7CxeCG4cDhwCWLYFDgg1NIxWDJwmCKxqJG4RvbYEjikQBAQ X-IPAS-Result: A0ATAAARoMVbly0YGNZkHQEBBQEHBQGBUQgBCwGBWSdpfyiMDF+LTZkUgXoNGxGEQAKEbyE0DQ0BAwEBAQEBAQIBEwEBAQEBBhgGTAyCNiKCYgMDgQlRV4M5ASgBgVgDp0iFOoRoi0wXgUE/iW+FDQKOPY9tCYYZPIl7CxeCG4cDhwCWLYFDgg1NIxWDJwmCKxqJG4RvbYEjikQBAQ X-IronPort-AV: E=Sophos;i="5.54,387,1534809600"; d="scan'208";a="16851483" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from ucol3cpa07.eemsg.mail.mil ([214.24.24.45]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 16 Oct 2018 08:26:02 +0000 X-EEMSG-check-005: 0 X-EEMSG-check-006: 000-001;e53cbb17-a347-46b4-9429-e6c276482a2e Authentication-Results: ucol19pa15.eemsg.mail.mil; dkim=none (message not signed) header.i=none; spf=None smtp.pra=vmojzis@redhat.com; spf=Pass smtp.mailfrom=vmojzis@redhat.com; spf=Pass smtp.helo=postmaster@mx1.redhat.com; dmarc=pass (p=none dis=none) d=redhat.com X-EEMSG-check-008: 603286768|UCOL19PA15_EEMSG_MP13.csd.disa.mil X-EEMSG-SBRS: 3.5 X-EEMSG-ORIG-IP: 209.132.183.28 X-EEMSG-check-002: true X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AZAABQn8Vbhxy3hNFkHQIFCAWBUggMAYFZgRB/KIwMX4tNmRSBeg0bEAGEQAKEbxoGAQQwDQ0BAwEBAQEBAQEBARMBAQEKCwkIKSMMgjYigmIDA4EJUVeDOQEoAYFYp0WFOoRoi0wXgUE/g3aFeYUNAo49j20Jhhk8iXsLF4IbhwOHAJYtgUOCDU0jFYMnCYIriTWEbz0wgSEBAYpEAQE X-IPAS-Result: A0AZAABQn8Vbhxy3hNFkHQIFCAWBUggMAYFZgRB/KIwMX4tNmRSBeg0bEAGEQAKEbxoGAQQwDQ0BAwEBAQEBAQEBARMBAQEKCwkIKSMMgjYigmIDA4EJUVeDOQEoAYFYp0WFOoRoi0wXgUE/g3aFeYUNAo49j20Jhhk8iXsLF4IbhwOHAJYtgUOCDU0jFYMnCYIriTWEbz0wgSEBAYpEAQE Received: from mx1.redhat.com ([209.132.183.28]) by ucol19pa15.eemsg.mail.mil with ESMTP/TLS/DHE-RSA-AES256-SHA256; 16 Oct 2018 08:26:01 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6B8DF89C47 for ; Tue, 16 Oct 2018 08:26:00 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-204-163.brq.redhat.com [10.40.204.163]) by smtp.corp.redhat.com (Postfix) with ESMTP id CF3F8100164E for ; Tue, 16 Oct 2018 08:25:59 +0000 (UTC) X-EEMSG-check-009: 444-444 From: Vit Mojzis To: selinux@tycho.nsa.gov Date: Tue, 16 Oct 2018 10:25:40 +0200 Message-Id: <20181016082541.21615-3-vmojzis@redhat.com> In-Reply-To: <20181016082541.21615-1-vmojzis@redhat.com> References: <20181016082541.21615-1-vmojzis@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 16 Oct 2018 08:26:00 +0000 (UTC) Subject: [PATCH 2/3] python/sepolicy: Stop rejecting aliases in sepolicy commands 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: MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP Fix CheckDomain and CheckPortType classes to properly deal with aliases. Resolves: rhbz#1600009 --- python/sepolicy/sepolicy.py | 8 +++----- python/sepolicy/sepolicy/__init__.py | 10 +++++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python/sepolicy/sepolicy.py b/python/sepolicy/sepolicy.py index a000c1ad..01380fbe 100755 --- a/python/sepolicy/sepolicy.py +++ b/python/sepolicy/sepolicy.py @@ -60,8 +60,6 @@ class CheckPath(argparse.Action): class CheckType(argparse.Action): def __call__(self, parser, namespace, values, option_string=None): - domains = sepolicy.get_all_domains() - if isinstance(values, str): setattr(namespace, self.dest, values) else: @@ -103,7 +101,7 @@ class CheckDomain(argparse.Action): domains = sepolicy.get_all_domains() if isinstance(values, str): - if values not in domains: + if sepolicy.get_real_type_name(values) not in domains: raise ValueError("%s must be an SELinux process domain:\nValid domains: %s" % (values, ", ".join(domains))) setattr(namespace, self.dest, values) else: @@ -112,7 +110,7 @@ class CheckDomain(argparse.Action): newval = [] for v in values: - if v not in domains: + if sepolicy.get_real_type_name(v) not in domains: raise ValueError("%s must be an SELinux process domain:\nValid domains: %s" % (v, ", ".join(domains))) newval.append(v) setattr(namespace, self.dest, newval) @@ -167,7 +165,7 @@ class CheckPortType(argparse.Action): if not newval: newval = [] for v in values: - if v not in port_types: + if sepolicy.get_real_type_name(v) not in port_types: raise ValueError("%s must be an SELinux port type:\nValid port types: %s" % (v, ", ".join(port_types))) newval.append(v) setattr(namespace, self.dest, values) diff --git a/python/sepolicy/sepolicy/__init__.py b/python/sepolicy/sepolicy/__init__.py index 8484b28c..0da3917b 100644 --- a/python/sepolicy/sepolicy/__init__.py +++ b/python/sepolicy/sepolicy/__init__.py @@ -447,6 +447,14 @@ def get_file_types(setype): return mpaths +# determine if entered type is an alias +# and return corresponding type name +def get_real_type_name(name): + try: + return next(info(TYPE, name))["name"] + except (RuntimeError, StopIteration): + return None + def get_writable_files(setype): file_types = get_all_file_types() all_writes = [] @@ -1061,7 +1069,7 @@ def gen_short_name(setype): domainname = setype[:-2] else: domainname = setype - if domainname + "_t" not in all_domains: + if get_real_type_name(domainname + "_t") not in all_domains: raise ValueError("domain %s_t does not exist" % domainname) if domainname[-1] == 'd': short_name = domainname[:-1] + "_"