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=-3.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, 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 C3514C43381 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 90B3A20828 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="vUc8DbQZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727438AbfCTAUj (ORCPT ); Tue, 19 Mar 2019 20:20:39 -0400 Received: from mail-eopbgr770110.outbound.protection.outlook.com ([40.107.77.110]:53831 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726891AbfCTAUj (ORCPT ); Tue, 19 Mar 2019 20:20:39 -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=aK4yJ5PN//8qCQJspYgsCL5rwdETjp3pIzC2+/092Pk=; b=vUc8DbQZ57djwVlL2Si1rpYl2fYTxhF3FXE6AbTCm2jt4FyFlmotAtlisTLspEWO7iydIgvs7xosyao8x+4WFX1Tx5TPvHxVBp/wSxun9v9sjV1WtxKD+eN9KAAkBW0j2ZwOW/sTWM0tnpQpkkaA0XlwLd3ywInNIHCYSFnLH8w= Received: from BN6PR15MB1507.namprd15.prod.outlook.com (10.172.151.147) by BN6PR15MB1156.namprd15.prod.outlook.com (10.172.205.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Wed, 20 Mar 2019 00:20:33 +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:33 +0000 From: "Sugar, David" To: "selinux-refpolicy@vger.kernel.org" Subject: [PATCH 0/4] Resolve issues using /usr/bin/timedatectl Thread-Topic: [PATCH 0/4] Resolve issues using /usr/bin/timedatectl Thread-Index: AQHU3rK7zl3GPrwPOkWgN/fyilG6Vw== Date: Wed, 20 Mar 2019 00:20:33 +0000 Message-ID: <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: 51f68234-265e-4570-0647-08d6acc9dd9f 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:BN6PR15MB1156; x-ms-traffictypediagnostic: BN6PR15MB1156: x-microsoft-antispam-prvs: x-forefront-prvs: 098291215C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(136003)(376002)(39840400004)(346002)(396003)(199004)(189003)(486006)(46003)(508600001)(305945005)(102836004)(6506007)(6916009)(106356001)(386003)(105586002)(7736002)(99286004)(52116002)(2616005)(476003)(186003)(2501003)(2906002)(36756003)(14454004)(6512007)(6486002)(53936002)(81156014)(5640700003)(97736004)(86362001)(81166006)(316002)(6436002)(6116002)(1076003)(50226002)(5660300002)(68736007)(14444005)(2351001)(256004)(25786009)(71190400001)(71200400001)(8936002)(4744005)(8676002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR15MB1156;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: UwKSm6qc+y6UjhDMIc61fnZcZ3MWEpt9PXtqfa4LZWBY2bjG6hzASllBvXmpk5XAqyBJKCnNl16XaMyaFR3bsIcH996r8kQK74Hq8kWRVM8Qna3iXzn7mBUlNH6KYlm6aACTtePRixGuoldgQ9eZaMMqxt+tXv2a5avI8t0ZU5lddxL5MZbsKbUfpE37METw6CKiC1ZNJay5kjGARqUsNXu5Q2DKz9FjVer8Kf7HFkfZTJEUjnBIdqdgGXDyxuAbYXg2yRLK3BWmfZDmATmGiKR6ciczkxexS7pTDMYmk8up4OhWGcRS64qNKPsgXAWDV5HtnrWVLPs04SBGOcSxwkRWMGiMKir6geKmeADUFvH7YrDlPHGViNQ/KHbA924QDua/LPK9JtM7b67Qka4VkvHoca1RsUXfZOA0smdlfUU= 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: 51f68234-265e-4570-0647-08d6acc9dd9f X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2019 00:20:33.1469 (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: BN6PR15MB1156 Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org I'm seeing some issues using timedatectl to alter the system date, time and timezone. The following set of patches is to resolve issues seen during these interactions. I setup as several patches to keep the set of denials clear for each patch. Dave Sugar (4): Add interface ntp_dbus_chat Allow ntpd to alter chronyd service Allow ntpd to update timezone Allow ntpd to read unit files policy/modules/services/ntp.if | 21 +++++++++++++++++++++ policy/modules/services/ntp.te | 9 +++++++++ policy/modules/system/init.if | 10 ++++++++++ 3 files changed, 40 insertions(+) --=20 2.20.1