From patchwork Fri Nov 9 15:43:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Mosnacek X-Patchwork-Id: 10676229 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 9EC2B5A4 for ; Fri, 9 Nov 2018 15:44:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B36A206AF for ; Fri, 9 Nov 2018 15:44:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EA2D27FC0; Fri, 9 Nov 2018 15:44:43 +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 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 92584206AF for ; Fri, 9 Nov 2018 15:44:42 +0000 (UTC) X-EEMSG-check-008: 355825122|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; 09 Nov 2018 15:44:39 +0000 X-IronPort-AV: E=Sophos;i="5.54,483,1534809600"; d="scan'208";a="17721073" IronPort-PHdr: 9a23:OsmbTRUZ51/m5NtQmFPJpBlTMbrV8LGtZVwlr6E/grcLSJyIuqrYYRSFuadThVPEFb/W9+hD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FwsBg8mdqMw/XRmcRzVkQlUXbvkkKAPhxFaUtNjv0JIX2WqNyZ23zPaUexwi66LBbRB6jyOSoQWWlhsdyZ5RAm4np5pfu36s+pAtzZhmC9nrfpi9jt9QhK3tC6k86UI3ikm8bq1nC8MtXxMUqOVlCKeWgYL9+gDkapJUyWq0le7enRWKdKruOM9d8396Yks5Wg+ahw/fioAGP6tEDz0k7jSXNbdrdJdgEfcoMyWMPm+IC0JOfI4wBPnAX181lu7/l5k82oOFzOn6tJsZICwIt0sySfgH2/HPE0N7aVEvIq5tVMCQOYsL1I0xmJl35viJGUWXMKaPWEzg0A/bHlcNopZ4EodEq4zhD+Ds4Fc8w0UaSuSGYOgqeyy1dzQ1ywFRMxxjnnTurXDg5or1HN/nNYh6SuJo3IbfOHwScJgAnHvkIxYzL+bBb22qu5Sboxgxfy6VeMadMmu/WzjwJJxRkqs3agTBXK8Oe4Hg6jBCmKrFzPeVuOMfGyB2T0+Nx2Xh1GkK1QtY5JSplQmeqva05hbkQCpXbJvEyOXo1KahGB2K+4Wdwsq/oygfgE= X-IPAS-Result: A2BWAAAPq+Vb/wHyM5BkGwEBAQEDAQEBBwMBAQGBVAMBAQELAYIAA4FoJ4xvixuLH4kphQuBXxIBARgTAYdmIjcKDQEDAQEBAQEBAgFsKII2JAGCZwIkExQgCwMDCQJACAgDAS0DAQUBCxcBBwsFGASDAIF1DQMBnAk8jAgzhT6EYxKHQIQqF4FBP4ERh10BEgEShWgCiRGGNJAHCYY1ilkLGIFXh202hnQslx4GAgkHDyGBOCJkcU0jFTuCbIIkGo4dcYEFAQGJPw0XgicBAQ Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 09 Nov 2018 15:44:31 +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 wA9Fi9gp003480; Fri, 9 Nov 2018 10:44:14 -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 wA9Fi71X036529 for ; Fri, 9 Nov 2018 10:44:07 -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 wA9Fi6To003478 for ; Fri, 9 Nov 2018 10:44:06 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1CIAABtquVbl3kVGNZkHAEBAQQBAQcEAQGBVAQBAQsBggCBayeMb4sbix+JKYZxCwEBhGyDJiI3Cg0BAwEBAQEBAQIUAQEBAQEGGAaGQFKBFQEFASIBEoMhgXUNAwGcBzyMCDOKIRKHQIQqF4FBP4ERiAOFaAKJEZY7CYY1ilkLGIFXh202hnQslx4GAgkHDyGBOIF3TSMVgyeCJBEJjh1AMYpGgksBAQ X-IPAS-Result: A1CIAABtquVbl3kVGNZkHAEBAQQBAQcEAQGBVAQBAQsBggCBayeMb4sbix+JKYZxCwEBhGyDJiI3Cg0BAwEBAQEBAQIUAQEBAQEGGAaGQFKBFQEFASIBEoMhgXUNAwGcBzyMCDOKIRKHQIQqF4FBP4ERiAOFaAKJEZY7CYY1ilkLGIFXh202hnQslx4GAgkHDyGBOIF3TSMVgyeCJBEJjh1AMYpGgksBAQ X-IronPort-AV: E=Sophos;i="5.54,483,1534824000"; d="scan'208";a="410852" Received: from emsm-gh1-uea11.ncsc.mil ([214.29.60.35]) by goalie.tycho.ncsc.mil with ESMTP; 09 Nov 2018 10:44:06 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BrAADjquVbl3kVGNZkHAEBAQQBAQcEAQGBVAQBAQsBggCBayeMb4sbix+JKYZxCwEBhGyDJiI3Cg0BAwEBAQEBAQIBEwEBAQEBBhgGWII2JAGDDVKBFQEFASIBEoMhgXUNAwGcCTyMCDOKIRKHQIQqF4FBP4ERiAOFaAKJEZY7CYY1ilkLGIFXh202hnQslx4GAgkHDyGBOIF3TSMVgyeCJBEJjh0/MopGgksBAQ X-IPAS-Result: A0BrAADjquVbl3kVGNZkHAEBAQQBAQcEAQGBVAQBAQsBggCBayeMb4sbix+JKYZxCwEBhGyDJiI3Cg0BAwEBAQEBAQIBEwEBAQEBBhgGWII2JAGDDVKBFQEFASIBEoMhgXUNAwGcCTyMCDOKIRKHQIQqF4FBP4ERiAOFaAKJEZY7CYY1ilkLGIFXh202hnQslx4GAgkHDyGBOIF3TSMVgyeCJBEJjh0/MopGgksBAQ X-IronPort-AV: E=Sophos;i="5.54,483,1534809600"; d="scan'208";a="20475344" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from uhil3cpa10.eemsg.mail.mil ([214.24.21.121]) by emsm-gh1-uea11.NCSC.MIL with ESMTP; 09 Nov 2018 15:44:05 +0000 X-EEMSG-check-005: 0 X-EEMSG-check-006: 000-001;b20d6462-73bf-4955-b9e2-bf93f2fc4e06 Authentication-Results: uhil19pa05.eemsg.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-wr1-f66.google.com; dmarc=pass (p=none dis=none) d=redhat.com X-EEMSG-check-008: 324828501|UHIL19PA05_EEMSG_MP3.csd.disa.mil X-EEMSG-SBRS: 2.7 X-EEMSG-ORIG-IP: 209.85.221.66 X-EEMSG-check-002: true X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CpAADjquVbf0LdVdFkHAEBAQQBAQcEAQGBVAQBAQsBhBKMb4sbix+JKYZxCwEBE4RZgyYaBwEEMwoNAQMBAQEBAQEBAQETAQEJCwsIGwwxgjYkAYMNUoEVAQUBIgESgyGBdQ0EnAk8jAgziiEJAQiHQIQqF4FBP4ERiAOFaAKJEZY7CYY1ilkLGIFXh202hnQslx4GAgkHDyGBOIF3TSMVgyeCJBqOHT4zikaCSwEB X-IPAS-Result: A0CpAADjquVbf0LdVdFkHAEBAQQBAQcEAQGBVAQBAQsBhBKMb4sbix+JKYZxCwEBE4RZgyYaBwEEMwoNAQMBAQEBAQEBAQETAQEJCwsIGwwxgjYkAYMNUoEVAQUBIgESgyGBdQ0EnAk8jAgziiEJAQiHQIQqF4FBP4ERiAOFaAKJEZY7CYY1ilkLGIFXh202hnQslx4GAgkHDyGBOIF3TSMVgyeCJBqOHT4zikaCSwEB Received: from mail-wr1-f66.google.com ([209.85.221.66]) by uhil19pa05.eemsg.mail.mil with ESMTP/TLS/AES128-SHA; 09 Nov 2018 15:43:39 +0000 Received: by mail-wr1-f66.google.com with SMTP id u9-v6so2390483wrr.0 for ; Fri, 09 Nov 2018 07:43:38 -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=hdajTUYZsV+N0P6koXKHomrq/kTNz6dtzi/LO6+JfcU=; b=g7gKwh1Oa+zWz1o01nbEMYQ1bAEEcSAMpDQ4n4dUFZvsrZ3aLjbLBrNviUHR7hhmy+ 4wa+i+DJFKZoClb+PiWz12bQoZ/aC5pQENKhhzfDm3NGkARTMy2nahpeex/5qSBOxbgz tVQGzbBsSLBoAuXIKsPKhemKCnLj9ReDd3138dAPZlT7GTiFGHilpViWD435uImQFTEE p1IMLmb07kKVbh7o5i82nCivJRgomlhEfwbG89opU2ewmN+W6WYOx2UvqeQTI3qTbwBd PFBB1DreGP5IKOazr8pu6xpZ04qMj34iLB52zbxVfzDEkBbxeQs/rro1WiTRIJoJMylA 3WoA== X-Gm-Message-State: AGRZ1gKBDK+cR8hpKBlxLdaVxnnCMfUCb5NMasd2oJ0Y7oc5fFjzflGQ DJjxWuFXzstul7QSYn5MRWCx3A== X-Google-Smtp-Source: AJdET5eeCzphGxecq87kE7Lt85pMoAZndQUlITlv0vxo8g/B9hOV3t2YrR3DSVDLrmi0h2etYkXNGg== X-Received: by 2002:a05:6000:110b:: with SMTP id z11mr8360694wrw.136.1541778216329; Fri, 09 Nov 2018 07:43:36 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id j18-v6sm3230389wmf.39.2018.11.09.07.43.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Nov 2018 07:43:35 -0800 (PST) X-EEMSG-check-009: 444-444 From: Ondrej Mosnacek To: selinux@vger.kernel.org, Paul Moore Date: Fri, 9 Nov 2018 16:43:23 +0100 Message-Id: <20181109154323.21122-1-omosnace@redhat.com> X-Mailer: git-send-email 2.17.2 Subject: [PATCH v2] 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 --- Changes in v2: - also drop unneeded #include's from mls.c security/selinux/ss/mls.c | 47 ++++------------------------------ security/selinux/ss/mls.h | 5 +--- security/selinux/ss/services.c | 32 ++++++++++++++++++++--- 3 files changed, 35 insertions(+), 49 deletions(-) diff --git a/security/selinux/ss/mls.c b/security/selinux/ss/mls.c index 2fe459df3c85..f1377f278b5d 100644 --- a/security/selinux/ss/mls.c +++ b/security/selinux/ss/mls.c @@ -24,10 +24,7 @@ #include #include #include -#include "sidtab.h" #include "mls.h" -#include "policydb.h" -#include "services.h" /* * Return the length in bytes for the MLS fields of the @@ -223,20 +220,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 +233,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 +330,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;