Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3482533ybi; Tue, 2 Jul 2019 08:30:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoiyfIx1BoIZCIwZzullE+jr1Bkg6G9z9xUktY9I28H04focNj3uDruJ60KXfzFJg/Acw2 X-Received: by 2002:a17:902:8c98:: with SMTP id t24mr36959428plo.320.1562081452156; Tue, 02 Jul 2019 08:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562081452; cv=none; d=google.com; s=arc-20160816; b=BLk7DTfbRxCqj1El3xXD227WVXdDCNTr0hi9DIEaO9ovtSFMlcJNpFdAXLo6vX+RIv EN0EyqabfGwbew7VgI+iDcfIdfvXFjlWj7bjgLmSc2S6XMvZsH2sGpdZJmx0OeeOn4XT dA5WAJMZ9RXSkSIb20N/D4XXcVHADX7KGSIX3TJvOpA7JAX7qoJ6S4RowhIfEDNEdfzj kNKlTdCnUyREWFxiP72WiYGUwHA/7sEsS67KgP5MUcrwYHD4xCwEKXh+YlXcR/YNxZcj ssXcqOppkxqXdcqkcyTbZ9zR+2eLQyk6kFo7qv5rOP607Bzd9K4JnPny9FGCdH8YRckV I7XQ== 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=yqOfzLXkG7v4TAHVnSenh7etdfdYvEuzXcwd2HeB2Bk=; b=NPaA9210wsmoUQR5o8ySeEMKEeWFqrKZnaNu93zZuKCqcA52nNwuxVqZTTiX3568lr vx8yCLVLbn0Sfo0roCsmbirHLhw6Nd/0nwknhQakicdC/NoxQtUwXhfLb5jPwuADx8rt IDJk5diOvScwuM3OuGvrRNGPy2T6VycbT1pr7kX6uSYzNl5N29VzOCzp5iCev5Vi4ig4 wWPXBsVi0RKRDoKm7A8UcPRwBssu2Z8j0RFLkck9RqcYyXfuV065xpqQLpR250/zjxe2 o9tSTTkxPhmIVodrnjiIzLta0rg7bBPLVOP9kHS/9jCm7xrarH42jFbpl82g2b6Dt9aW wF4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tresys.onmicrosoft.com header.s=selector2-tresys-onmicrosoft-com header.b=hZnMB6vU; 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 u24si13815168plq.430.2019.07.02.08.30.48; Tue, 02 Jul 2019 08:30:52 -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=hZnMB6vU; 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 S1725868AbfGBPad (ORCPT + 11 others); Tue, 2 Jul 2019 11:30:33 -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 S1725780AbfGBPad (ORCPT ); Tue, 2 Jul 2019 11:30:33 -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=yqOfzLXkG7v4TAHVnSenh7etdfdYvEuzXcwd2HeB2Bk=; b=hZnMB6vUOBpF24qcrqEZu7PGGee7nRpI8Cm4y7++A/RdhkLcZXOyEo6PImmGLV9D/ODhhKSFYK/suqT4haKy8vV+c0cLGD0TXKPJhU9xqSPJxwiNiK/rsfRUEyfMCLWVjWQd7bCUWDO9J4VFgiIVj2+cAOA9PsVSibvELalAdio= 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:30 +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:30 +0000 From: "Sugar, David" To: "selinux-refpolicy@vger.kernel.org" Subject: [PATCH 1/5] grant rpm permission to map rpm_var_lib_t Thread-Topic: [PATCH 1/5] grant rpm permission to map rpm_var_lib_t Thread-Index: AQHVMOsU5GnSUf9RI0SE5SlWI2nU8w== Date: Tue, 2 Jul 2019 15:30:29 +0000 Message-ID: <20190702153014.14097-2-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: 25fb1ca4-b33c-40ed-c189-08d6ff023695 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)(4636009)(136003)(376002)(39830400003)(346002)(396003)(366004)(189003)(199004)(2616005)(305945005)(14444005)(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);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: voNDsuuKUIIcCEBMVBFxM1vOSS6CEtm64OftDByjS2PQcICjGVZn/sDK16Qu4n7JtnjOIND9rf8c68p3D+dDIAJYHphRkakBP72di+GHk8Mq+vAm6PkNbih9JYrqYUWFv0AX2XOtIM+rOLCdQIPGhIDmLpxEjO5NwpXGATjiehVOj6GwEAjK32/6YUp2JSdELKz2yM0tYk+6xgpQjiQ9XUXhcGpVshNf/+kfYIUT4Zl5lDdu4hMPiTf7GlMernA3RSzy+6hk/s9p/oNYZsIr2xt2RIOOXM959GPKdj4LqkZC7QH8iPwLA/BklHR86ta5e94YV3DvM+5O5aFpsrj6Bd9VB+AyAaQU8sxv8A61jrakPG/rfHIWxya+fBHDpvDDaKq793VoDWFxh2Ks+l7+QVfDDpBujkofeuyP7Dk1M/Q= 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: 25fb1ca4-b33c-40ed-c189-08d6ff023695 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2019 15:30:29.6590 (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(1560913896.432:218): avc: denied { map } for pid= =3D1265 comm=3D"rpm" path=3D"/var/lib/rpm/__db.001" dev=3D"dm-0" ino=3D2223= scontext=3Dsystem_u:system_r:rpm_t:s0 tcontext=3Dsystem_u:object_r:rpm_var= _lib_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 e00b8ddd..0e6e9c03 100644 --- a/policy/modules/admin/rpm.te +++ b/policy/modules/admin/rpm.te @@ -111,6 +111,7 @@ files_lock_filetrans(rpm_t, rpm_lock_t, file) =20 manage_dirs_pattern(rpm_t, rpm_var_lib_t, rpm_var_lib_t) manage_files_pattern(rpm_t, rpm_var_lib_t, rpm_var_lib_t) +mmap_read_files_pattern(rpm_t, rpm_var_lib_t, rpm_var_lib_t) files_var_lib_filetrans(rpm_t, rpm_var_lib_t, { dir file }) =20 manage_dirs_pattern(rpm_t, rpm_var_run_t, rpm_var_run_t) --=20 2.21.0