Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3482624ybi; Tue, 2 Jul 2019 08:30:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6+Tt5qYNbJ5ZLnCV+64tPMM4cWqci2Af2WSzuRmZH/5zoeHv9RtHcgdESD1XcKVqZIJbC X-Received: by 2002:a17:90a:9201:: with SMTP id m1mr6312291pjo.38.1562081456667; Tue, 02 Jul 2019 08:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562081456; cv=none; d=google.com; s=arc-20160816; b=pJ6mRlLLtDzDqGzF1ZzCNK8uO7pTxFHxWArXmVkNwVi12Hm2Zs5jFQlLWfvq8IrBu+ rL7TtBHhkKaALeJYlo3vx1mtfU4Vl1WK4YfMrntzh2VtXq05+YZli2uflWEZNiI+mUZU WSpiZo8zbdAw3HHp3EqCD3NxMhzBrImYeOkyvXUT3HM+rK8TmWwIi4VEFli41i+QHnKB 18OLdIYGg/8yI4ACqLMyVoAJ4tDcRq6+SlTZlgs0OZdNwaCiRZ6aQV5oPbDpGz/kOqny Lma79PH6k9PSYwIMLEAvuafH2AhkX4x2DuZwvEecnCwkNwH1VLPqn40jIYlnBze0tlfa ka0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:dkim-signature; bh=JEvwrGLS957eVyVG56X1XwPQKVMOeheyvuJviyNrV2I=; b=f2KVWjjDDSpHHNp2PX1azXqUYecnyKnb8BZ+BIvzAo7KKp/0CGlbIx9F8NksHAptOm scg11A2lJNLSnJLKoZ0dz2cUpu5EMeVWxv5BZKkcjPIBzC3AqbDWbJnjwM9+v4DX1UJr MiPKv2cGetx1WMEmFpSBpL29GfD4nGA1KitkbqqEDvsPU4igUUJJ/xrBwm4KnUXl3mD9 +EuvCXkRAL0Arj7KLALjDUeK9zprOw9rC3hlHDuzySyR99h7H39fXVgbnd5Xnl+Gt6JM RoQ/C4QPhepB8hHsnS8Vlc0jbC2n919QZecEAlIXDRsu+kt3FzVNokUnLuAtffGY3+Qc 3teA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tresys.onmicrosoft.com header.s=selector2-tresys-onmicrosoft-com header.b=EnQCbSfO; spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si9099727pgc.40.2019.07.02.08.30.54; Tue, 02 Jul 2019 08:30:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@tresys.onmicrosoft.com header.s=selector2-tresys-onmicrosoft-com header.b=EnQCbSfO; spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726522AbfGBPay (ORCPT + 11 others); Tue, 2 Jul 2019 11:30:54 -0400 Received: from mail-eopbgr700116.outbound.protection.outlook.com ([40.107.70.116]:63562 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725972AbfGBPax (ORCPT ); Tue, 2 Jul 2019 11:30:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tresys.onmicrosoft.com; s=selector2-tresys-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JEvwrGLS957eVyVG56X1XwPQKVMOeheyvuJviyNrV2I=; b=EnQCbSfOCuWGeiaFCIIQrFP6j8xGdOjgIMCJkhk1vb2fV1UAsMMfF2TsftCNWwdgUHx2XVdRClrajru1QgriIAQk+bdywmnVpajYgF7bPddrA1+e9beYqG+Pf/fuNvLKO2F9auBROJFJe2pYtS2yXFFMT2MIHea0QGivz60+RTc= Received: from BN6PR15MB1507.namprd15.prod.outlook.com (10.172.151.147) by BN6PR15MB1170.namprd15.prod.outlook.com (10.172.206.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.18; Tue, 2 Jul 2019 15:30:32 +0000 Received: from BN6PR15MB1507.namprd15.prod.outlook.com ([fe80::80fc:6403:1abc:cb23]) by BN6PR15MB1507.namprd15.prod.outlook.com ([fe80::80fc:6403:1abc:cb23%6]) with mapi id 15.20.2032.019; Tue, 2 Jul 2019 15:30:32 +0000 From: "Sugar, David" To: "selinux-refpolicy@vger.kernel.org" Subject: [PATCH 4/5] Allow rpm to map file contexts Thread-Topic: [PATCH 4/5] Allow rpm to map file contexts Thread-Index: AQHVMOsVV+7prm7pJEacnKe3sSYoHg== Date: Tue, 2 Jul 2019 15:30:31 +0000 Message-ID: <20190702153014.14097-5-dsugar@tresys.com> References: <20190702153014.14097-1-dsugar@tresys.com> In-Reply-To: <20190702153014.14097-1-dsugar@tresys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [96.244.17.66] x-clientproxiedby: BN8PR03CA0034.namprd03.prod.outlook.com (2603:10b6:408:94::47) To BN6PR15MB1507.namprd15.prod.outlook.com (2603:10b6:404:c6::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=dsugar@tresys.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.21.0 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a6025ff2-2c89-4560-6867-08d6ff0237c8 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BN6PR15MB1170; x-ms-traffictypediagnostic: BN6PR15MB1170: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:207; x-forefront-prvs: 008663486A x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(4636009)(136003)(376002)(39830400003)(346002)(396003)(366004)(189003)(199004)(2616005)(305945005)(446003)(86362001)(476003)(4744005)(2906002)(486006)(11346002)(66476007)(66556008)(64756008)(66446008)(5660300002)(14454004)(186003)(76176011)(25786009)(102836004)(6116002)(3846002)(2501003)(26005)(316002)(6506007)(508600001)(50226002)(66946007)(1076003)(386003)(5640700003)(52116002)(256004)(8676002)(66066001)(6916009)(6486002)(99286004)(6436002)(53936002)(36756003)(6512007)(81166006)(2351001)(7736002)(81156014)(73956011)(8936002)(71200400001)(71190400001)(68736007)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR15MB1170;H:BN6PR15MB1507.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: tresys.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: wgC2K7cElEq25z/hIm9GbIomDHLiCoqzebgjjPs+9kQ1/dJUqEdFxIJmXzkmtSzNsHk015K8XZy7c8Py0o1ELTWhOxYXsKef7ygQU1ds3RO3NvUb3gTPJnNJwUi/JPlHgKkALXdRHB0SlU41thiEwbQ2KoNf9zspVtlNqzb5oy91TbG8Vte+vPkjymIqwRMxBREEpOuVpWy/0N0NV8Niv08Q+yUj9s3VcXyI8hiwHizM2egExadIEyaOWDqvrNQczh59cEzZLwN59Ak8m3xHsJ/FomZLTfRXWfeqgX7wTKfp/Le3Ji5eHgRaLD29HkL0rZXN8SAjwYI50neaiuQgovSylDdXJ+GHF3IHKEtTWN8qVDcxhAMqvSVucSM1uCdx3BF7j3F1NKT2GSs0oe8u9/2NBd4zrocaNoQknai2XtY= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: tresys.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6025ff2-2c89-4560-6867-08d6ff0237c8 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2019 15:30:31.3875 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a0d45667-6c07-4e88-868f-4ac9af95c7ed X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dsugar@tresys.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR15MB1170 Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org type=3DAVC msg=3Daudit(1560944465.365:270): avc: denied { map } for pid= =3D1265 comm=3D"rpm" path=3D"/etc/selinux/clip/contexts/files/file_contexts= .bin" dev=3D"dm-0" ino=3D44911 scontext=3Dsystem_u:system_r:rpm_t:s0 tconte= xt=3Dsystem_u:object_r:file_context_t:s0 tclass=3Dfile permissive=3D1 Signed-off-by: Dave Sugar --- policy/modules/admin/rpm.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/admin/rpm.te b/policy/modules/admin/rpm.te index 7020276c..111fcb01 100644 --- a/policy/modules/admin/rpm.te +++ b/policy/modules/admin/rpm.te @@ -211,6 +211,7 @@ miscfiles_read_localization(rpm_t) =20 seutil_manage_src_policy(rpm_t) seutil_manage_bin_policy(rpm_t) +seutil_read_file_contexts(rpm_t) =20 userdom_use_user_terminals(rpm_t) userdom_use_unpriv_users_fds(rpm_t) --=20 2.21.0