From patchwork Fri Nov 9 14:19:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Mosnacek X-Patchwork-Id: 10676047 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 7FEC013AD for ; Fri, 9 Nov 2018 14:20:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6847C2E3D2 for ; Fri, 9 Nov 2018 14:20:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BCF82E443; Fri, 9 Nov 2018 14:20:49 +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=-4.5 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SUBJ_OBFU_PUNCT_FEW autolearn=ham version=3.3.1 Received: from uhil19pa12.eemsg.mail.mil (uhil19pa12.eemsg.mail.mil [214.24.21.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 7DF0D2E42B for ; Fri, 9 Nov 2018 14:20:48 +0000 (UTC) X-EEMSG-check-008: 355589552|UHIL19PA12_EEMSG_MP10.csd.disa.mil Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.2]) by uhil19pa12.eemsg.mail.mil with ESMTP/TLS/DHE-RSA-AES256-SHA256; 09 Nov 2018 14:20:45 +0000 X-IronPort-AV: E=Sophos;i="5.54,483,1534809600"; d="scan'208";a="17716781" IronPort-PHdr: 9a23:yqA45RL4wohiC8YfONmcpTZWNBhigK39O0sv0rFitYgTKv7/rarrMEGX3/hxlliBBdydt6obzbKO+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u8QZ9ZrU+3EoW5P6YJhKq4PO16dqIbsrjhWtFBlSDMuPaQ9qj1ca1nmggJYQeD3taQGhw9aVsR2/Qd0EH+0cEc54CDKHfBNhbSVIOQc7zHWS6sJSUguOSR7FUCbwpJrLpyvkepKsCtjmTh7qfMn0HQyQx67oivlrK8lwz8s+Lik8j4GvCoWHa2ljy7UBAAbn7wxhqAGBiOnsAXkOiNRZZbu4LRhOcXr/JUg5HJ6exg4YikaRr7+UXPtj6KMW92XuYoMwhOAo8DBK7q6LCxUM7U5mneBD3R+0w2LmhFu/SNLRzi799YrKc27Ptpt3SunH2XXNR4M76pFvdG3tAsNS+07OjYDiH573J2hQSsADNfKB35zlhItPGJBd4lF4BQXP7MljjaBou9N+QRHBVWcCZyrr7HZhtyAwnwhVZFvz2PSqLeCg8Yt1Xp+ndp/4waUtXgSfvCeWMhpUR2RnpxHx7nYYPOg+vsCVJMgyLmlV6oaNdK//GKtxJhwckqsx7BbAF/gdeFdlvHUVCCqTWDeUuOOIA3u1zo8O1T5sAGhNUZ/KN8fqUg7P6POh4UJkQrnXPI8SnCKqFPbxXBlOuQfeg== X-IPAS-Result: A2ApAAAGl+Vb/wHyM5BkGwEBAQEDAQEBBwMBAQGBUwQBAQELAYIAA4FoJ4xvixuLH4kphHcUgV8SAQEYEwGHZCI2Cw0BAwEBAQEBAQIBbCiCNiQBgmcCJBMUIAsDAwkCQAgIAwEtAwEFAQsXAQcLBRgEgwCBdQ0DAZt9PIwIM4U+hGQSh0CEKheBQT+BEYddARIBEoVoAokRhjSQBwmGNYpZCxiBV4dtNoZzASyXHgYCCQcPIYEpBSxkcU0jFTuCbJBbcYEFAQGJPw0XgicBAQ Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 09 Nov 2018 14:20:43 +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 wA9EKBRD023022; Fri, 9 Nov 2018 09:20:16 -0500 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 wA9EK8RQ036433 for ; Fri, 9 Nov 2018 09:20:08 -0500 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 wA9EK6ei023018 for ; Fri, 9 Nov 2018 09:20:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1AtAACNluVbl3oVGNZkHAEBAQQBAQcEAQGBUgYBAQsBggCBayeMb4sbix+JKYR3gXoLAQGEbIMkIjUMDQEDAQEBAQEBAhQBAQEBAQYYBoZAUoEVAQUBIgESgyGBdQ0DAZwBPIwIM4oiEodAhCoXgUE/gRGIA4VoAokRljsJhjWKWQsYgVeHbTaGdCyXHgYCCQcPIYEkA4IITSMVgyeCNY4mQDGKRoJLAQE X-IPAS-Result: A1AtAACNluVbl3oVGNZkHAEBAQQBAQcEAQGBUgYBAQsBggCBayeMb4sbix+JKYR3gXoLAQGEbIMkIjUMDQEDAQEBAQEBAhQBAQEBAQYYBoZAUoEVAQUBIgESgyGBdQ0DAZwBPIwIM4oiEodAhCoXgUE/gRGIA4VoAokRljsJhjWKWQsYgVeHbTaGdCyXHgYCCQcPIYEkA4IITSMVgyeCNY4mQDGKRoJLAQE X-IronPort-AV: E=Sophos;i="5.54,483,1534824000"; d="scan'208";a="410772" Received: from emsm-gh1-uea11.ncsc.mil ([214.29.60.35]) by goalie.tycho.ncsc.mil with ESMTP; 09 Nov 2018 09:20:07 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AkAADKluVbl3oVGNZkHAEBAQQBAQcEAQGBUgYBAQsBggCBayeMb4sbix+JKYR3gXoLAQGEbIMkIjUMDQEDAQEBAQEBAgETAQEBAQEGGAZYgjYkAYMNUoEVAQUBIgESgyGBdQ0DAZt9PIwIM4oiEodAhCoXgUE/gRGIA4VoAokRljsJhjWKWQsYgVeHbTaGdCyXHgYCCQcPIYEkA4IITSMVgyeCNY4mPzKKRoJLAQE X-IPAS-Result: A0AkAADKluVbl3oVGNZkHAEBAQQBAQcEAQGBUgYBAQsBggCBayeMb4sbix+JKYR3gXoLAQGEbIMkIjUMDQEDAQEBAQEBAgETAQEBAQEGGAZYgjYkAYMNUoEVAQUBIgESgyGBdQ0DAZt9PIwIM4oiEodAhCoXgUE/gRGIA4VoAokRljsJhjWKWQsYgVeHbTaGdCyXHgYCCQcPIYEkA4IITSMVgyeCNY4mPzKKRoJLAQE X-IronPort-AV: E=Sophos;i="5.54,483,1534809600"; d="scan'208";a="20469525" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from uhil3cpa11.eemsg.mail.mil ([214.24.21.122]) by emsm-gh1-uea11.NCSC.MIL with ESMTP; 09 Nov 2018 14:20:06 +0000 X-EEMSG-check-005: 0 X-EEMSG-check-006: 000-001;89041109-a43c-4926-a886-d8f0fb37bec7 Authentication-Results: uhil19pa08.eesmg.mail.mil; dkim=none (message not signed) header.i=none; spf=None smtp.pra=omosnace@redhat.com; spf=Pass smtp.mailfrom=omosnace@redhat.com; spf=None smtp.helo=postmaster@mail-wm1-f68.google.com; dmarc=pass (p=none dis=none) d=redhat.com X-EEMSG-check-008: 325520406|UHIL19PA08_EEMSG_MP6.csd.disa.mil X-EEMSG-SBRS: 2.7 X-EEMSG-ORIG-IP: 209.85.128.68 X-EEMSG-check-002: true X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BSAADKluVbf0SAVdFkHAEBAQQBAQcEAQGBUwUBAQsBhBKMb4sbix+JKYR3gXoLAQEThFmDJBoHAQQyCw0BAwEBAQEBAQEBARMBAQkLCwgbDDGCNiQBgw1SgRUBBQEiARKDIYF1DQSbfTyMCDOKIgkBCIdAhCoXgUE/gRGIA4VoAokRljsJhjWKWQsYgVeHbTaGcwEslx4GAgkHDyGBKAGCBk0jFYMnkFs+M4pGgksBAQ X-IPAS-Result: A0BSAADKluVbf0SAVdFkHAEBAQQBAQcEAQGBUwUBAQsBhBKMb4sbix+JKYR3gXoLAQEThFmDJBoHAQQyCw0BAwEBAQEBAQEBARMBAQkLCwgbDDGCNiQBgw1SgRUBBQEiARKDIYF1DQSbfTyMCDOKIgkBCIdAhCoXgUE/gRGIA4VoAokRljsJhjWKWQsYgVeHbTaGcwEslx4GAgkHDyGBKAGCBk0jFYMnkFs+M4pGgksBAQ Received: from mail-wm1-f68.google.com ([209.85.128.68]) by uhil19pa08.eesmg.mail.mil with ESMTP/TLS/AES128-SHA; 09 Nov 2018 14:20:02 +0000 Received: by mail-wm1-f68.google.com with SMTP id v70-v6so1657240wmd.1 for ; Fri, 09 Nov 2018 06:20:02 -0800 (PST) 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; bh=s/4X6HYI/eolH9/GPG8rYlYB3LPsz5gRJjco5WIbidU=; b=tNSWn2RHWpp020gQS+sAZFT+bhnFUVUX3yG37WTKDAtup30oeg7zz4g/iz5AlozSmo yiVSnY3YBXJ1aytIDZs2iGwfOOGMgD1XFEVVqp7xPzni+3dYS4jLppMNHl5gWtOwRvzW QCS3WoZbHI6bZ5RmMoNCqKTtljYRk/fWlMuBv4JsLKhYVjmyaPZzYg/4ob4azPi2yqyf adrmChQbLxe/Bc6hAibX9ahRfmS6XU5mXx15KU2oS8VPvQc3c3op/PvB3jAtHourpdEu PDR5zr4hJ2tRORVMOcvyANgCUhsvPm17ZuBWK4/sXBLN6w5WDg0xfyNxpMIQN2tQHRfF Cs0Q== X-Gm-Message-State: AGRZ1gKPuYJ9h2q8z5H2+KvQx8BfKLEZQ3rVh+LsAOx1CQj4KqYS1z90 FNm3m8a2+48O3ug8h7vn2v7UCA== X-Google-Smtp-Source: AJdET5dHwe+V7fL6ue2to42BGDY2rlZqUEub8UAuRUeyinAuVYoCFwUBxTbuvZxwYxdB6xFn8xOKtw== X-Received: by 2002:a1c:aacf:: with SMTP id t198-v6mr5126625wme.108.1541773199931; Fri, 09 Nov 2018 06:19:59 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id b5-v6sm4255996wrs.34.2018.11.09.06.19.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Nov 2018 06:19:59 -0800 (PST) X-EEMSG-check-009: 444-444 From: Ondrej Mosnacek To: selinux@vger.kernel.org, Paul Moore Date: Fri, 9 Nov 2018 15:19:43 +0100 Message-Id: <20181109141943.5348-1-omosnace@redhat.com> X-Mailer: git-send-email 2.17.2 Subject: [PATCH] selinux: simplify mls_context_to_sid() 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: Cc: Stephen Smalley , selinux@tycho.nsa.gov MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP This function has only two callers, but only one of them actually needs the special logic at the beginning. Factoring this logic out into string_to_context_struct() allows us to drop the arguments 'oldc', 's', and 'def_sid'. Signed-off-by: Ondrej Mosnacek --- security/selinux/ss/mls.c | 44 ++++------------------------------ security/selinux/ss/mls.h | 5 +--- security/selinux/ss/services.c | 32 ++++++++++++++++++++++--- 3 files changed, 35 insertions(+), 46 deletions(-) diff --git a/security/selinux/ss/mls.c b/security/selinux/ss/mls.c index 2fe459df3c85..587f51657137 100644 --- a/security/selinux/ss/mls.c +++ b/security/selinux/ss/mls.c @@ -223,20 +223,12 @@ int mls_context_isvalid(struct policydb *p, struct context *c) * This function modifies the string in place, inserting * NULL characters to terminate the MLS fields. * - * If a def_sid is provided and no MLS field is present, - * copy the MLS field of the associated default context. - * Used for upgraded to MLS systems where objects may lack - * MLS fields. - * * Policy read-lock must be held for sidtab lookup. * */ int mls_context_to_sid(struct policydb *pol, - char oldc, char *scontext, - struct context *context, - struct sidtab *s, - u32 def_sid) + struct context *context) { char *sensitivity, *cur_cat, *next_cat, *rngptr; struct level_datum *levdatum; @@ -244,29 +236,6 @@ int mls_context_to_sid(struct policydb *pol, int l, rc, i; char *rangep[2]; - if (!pol->mls_enabled) { - if ((def_sid != SECSID_NULL && oldc) || (*scontext) == '\0') - return 0; - return -EINVAL; - } - - /* - * No MLS component to the security context, try and map to - * default if provided. - */ - if (!oldc) { - struct context *defcon; - - if (def_sid == SECSID_NULL) - return -EINVAL; - - defcon = sidtab_search(s, def_sid); - if (!defcon) - return -EINVAL; - - return mls_context_cpy(context, defcon); - } - /* * If we're dealing with a range, figure out where the two parts * of the range begin. @@ -364,14 +333,11 @@ int mls_from_string(struct policydb *p, char *str, struct context *context, return -EINVAL; tmpstr = kstrdup(str, gfp_mask); - if (!tmpstr) { - rc = -ENOMEM; - } else { - rc = mls_context_to_sid(p, ':', tmpstr, context, - NULL, SECSID_NULL); - kfree(tmpstr); - } + if (!tmpstr) + return -ENOMEM; + rc = mls_context_to_sid(p, tmpstr, context); + kfree(tmpstr); return rc; } diff --git a/security/selinux/ss/mls.h b/security/selinux/ss/mls.h index 67093647576d..e2498f78e100 100644 --- a/security/selinux/ss/mls.h +++ b/security/selinux/ss/mls.h @@ -33,11 +33,8 @@ int mls_range_isvalid(struct policydb *p, struct mls_range *r); int mls_level_isvalid(struct policydb *p, struct mls_level *l); int mls_context_to_sid(struct policydb *p, - char oldc, char *scontext, - struct context *context, - struct sidtab *s, - u32 def_sid); + struct context *context); int mls_from_string(struct policydb *p, char *str, struct context *context, gfp_t gfp_mask); diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 12e414394530..ccad4334f99d 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -1425,9 +1425,35 @@ static int string_to_context_struct(struct policydb *pol, ctx->type = typdatum->value; - rc = mls_context_to_sid(pol, oldc, p, ctx, sidtabp, def_sid); - if (rc) - goto out; + if (!pol->mls_enabled) { + rc = -EINVAL; + if ((def_sid == SECSID_NULL || !oldc) && (*p) != '\0') + goto out; + } else if (!oldc) { + /* + * If a def_sid is provided and no MLS field is present, + * copy the MLS field of the associated default context. + * Used for upgrading to MLS systems where objects may lack + * MLS fields. + */ + struct context *defcon; + + rc = -EINVAL; + if (def_sid == SECSID_NULL) + goto out; + + defcon = sidtab_search(sidtabp, def_sid); + if (!defcon) + goto out; + + rc = mls_context_cpy(ctx, defcon); + if (rc) + goto out; + } else { + rc = mls_context_to_sid(pol, p, ctx); + if (rc) + goto out; + } /* Check the validity of the new context. */ rc = -EINVAL;