Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43640C4360F for ; Wed, 20 Mar 2019 00:20:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08FE6217F5 for ; Wed, 20 Mar 2019 00:20:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=tresys.onmicrosoft.com header.i=@tresys.onmicrosoft.com header.b="pQdfhhWM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727429AbfCTAUi (ORCPT ); Tue, 19 Mar 2019 20:20:38 -0400 Received: from mail-eopbgr820109.outbound.protection.outlook.com ([40.107.82.109]:29376 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727148AbfCTAUi (ORCPT ); Tue, 19 Mar 2019 20:20:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tresys.onmicrosoft.com; s=selector1-tresys-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BGw7x8uIZ+dKfmBhYXlZq+UT8jjISn1qKW6/V/SLCKg=; b=pQdfhhWMmrxRErJ1nebtrYK+2c408KJos88YhQyp3FA0j5aOR1/Q1gfKDEzP4iPypTBWy64TE/jrIT3oPYh99HBTBYIXnSsgY77mQxXK8u/CkekCs83NQe2/fPxCsGa5juBRTyR6FBQPZ4LGnLbUr/rfRTL7MQVCYeWXOiIqowY= Received: from BN6PR15MB1507.namprd15.prod.outlook.com (10.172.151.147) by BN6PR15MB1124.namprd15.prod.outlook.com (10.172.205.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.14; Wed, 20 Mar 2019 00:20:36 +0000 Received: from BN6PR15MB1507.namprd15.prod.outlook.com ([fe80::ec41:1dc7:5fd4:a07a]) by BN6PR15MB1507.namprd15.prod.outlook.com ([fe80::ec41:1dc7:5fd4:a07a%8]) with mapi id 15.20.1709.015; Wed, 20 Mar 2019 00:20:35 +0000 From: "Sugar, David" To: "selinux-refpolicy@vger.kernel.org" Subject: [PATCH 3/4] Allow ntpd to update timezone symlink Thread-Topic: [PATCH 3/4] Allow ntpd to update timezone symlink Thread-Index: AQHU3rK88cLGEO2MGk+w25Mxlyd98Q== Date: Wed, 20 Mar 2019 00:20:34 +0000 Message-ID: <20190320002012.21220-4-dsugar@tresys.com> References: <20190320002012.21220-1-dsugar@tresys.com> In-Reply-To: <20190320002012.21220-1-dsugar@tresys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2601:154:c201:cca:6e88:14ff:fed4:292c] x-clientproxiedby: BL0PR03CA0002.namprd03.prod.outlook.com (2603:10b6:208:2d::15) 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.20.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a74a7305-940d-4957-1d17-08d6acc9deb7 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:BN6PR15MB1124; x-ms-traffictypediagnostic: BN6PR15MB1124: x-microsoft-antispam-prvs: x-forefront-prvs: 098291215C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(366004)(376002)(346002)(136003)(39830400003)(199004)(189003)(76176011)(97736004)(6506007)(86362001)(8676002)(386003)(6436002)(6486002)(508600001)(5660300002)(6916009)(36756003)(305945005)(52116002)(186003)(102836004)(50226002)(7736002)(6116002)(25786009)(81166006)(2906002)(81156014)(256004)(2501003)(106356001)(446003)(5640700003)(71190400001)(105586002)(14454004)(11346002)(71200400001)(46003)(316002)(2351001)(8936002)(1076003)(6512007)(68736007)(99286004)(2616005)(476003)(486006)(53936002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR15MB1124;H:BN6PR15MB1507.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: qSB7dSkjcV5J1ui5W8MtkCVb3imLv2QMBLjmFueDCv9e42p7vfxaW+WzTFrtCUSPaus6OUltMPRnJ7UrWnaPQTvSyjHPvoDKou17CCJ9kdJND2Yi9/V5s9ABA0aMwxR0USS20lWm/fKtb440JDJTU96jP/poxF0Pyt4BtvdAFA5D71IoQIytcGR/DkKa/QKclhcgf4+R0Al71oDiIB8KP51DaSGzGk1dCeorb73PJdHOiesOKefRbITwgC1BEaKoYvZImi0NJ50DnzShiOmswElvSUuv9XRC2QGDB9IPuXb4qCbf9qA+zaowFhwjThNRx0TYj27Y8yewPGYgf29E/fhCau9mqmAZDxLlkIma6p5t6Rgr1dwQpxpvOaE9kKjQQwainbv0SpdnhLm8cYvVpA/nFSwCc5ZqQsn5HcCjA5g= 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: a74a7305-940d-4957-1d17-08d6acc9deb7 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2019 00:20:34.9794 (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-Transport-CrossTenantHeadersStamped: BN6PR15MB1124 Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org type=3DAVC msg=3Daudit(1553013821.624:9907): avc: denied { create } for = pid=3D16281 comm=3D"systemd-timedat" name=3D".#localtime69bc4c9ad513a247" s= context=3Dsystem_u:system_r:ntpd_t:s0 tcontext=3Dsystem_u:object_r:etc_t:s0= tclass=3Dlnk_file permissive=3D1 type=3DAVC msg=3Daudit(1553013821.624:9908): avc: denied { rename } for = pid=3D16281 comm=3D"systemd-timedat" name=3D".#localtime69bc4c9ad513a247" d= ev=3D"dm-1" ino=3D714303 scontext=3Dsystem_u:system_r:ntpd_t:s0 tcontext=3D= system_u:object_r:etc_t:s0 tclass=3Dlnk_file permissive=3D1 type=3DAVC msg=3Daudit(1553013821.624:9908): avc: denied { unlink } for = pid=3D16281 comm=3D"systemd-timedat" name=3D"localtime" dev=3D"dm-1" ino=3D= 1063377 scontext=3Dsystem_u:system_r:ntpd_t:s0 tcontext=3Dsystem_u:object_r= :etc_t:s0 tclass=3Dlnk_file permissive=3D1 Signed-off-by: Dave Sugar --- policy/modules/services/ntp.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/services/ntp.te b/policy/modules/services/ntp.t= e index d882fc59..eff38486 100644 --- a/policy/modules/services/ntp.te +++ b/policy/modules/services/ntp.te @@ -116,6 +116,7 @@ dev_rw_realtime_clock(ntpd_t) domain_use_interactive_fds(ntpd_t) domain_dontaudit_list_all_domains_state(ntpd_t) =20 +files_manage_etc_symlinks(ntpd_t) files_read_etc_runtime_files(ntpd_t) files_read_usr_files(ntpd_t) files_list_var_lib(ntpd_t) --=20 2.20.1