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 5FC08C10F00 for ; Thu, 21 Mar 2019 18:29:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3577721902 for ; Thu, 21 Mar 2019 18:29:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=tresys.onmicrosoft.com header.i=@tresys.onmicrosoft.com header.b="Dx0ZVuqD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728587AbfCUS3a (ORCPT ); Thu, 21 Mar 2019 14:29:30 -0400 Received: from mail-eopbgr820135.outbound.protection.outlook.com ([40.107.82.135]:26496 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728647AbfCUS33 (ORCPT ); Thu, 21 Mar 2019 14:29:29 -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=ZhkTcEWyF1yMOswlW8IQnTbzPDkGW8Ngwtdmui5vb6k=; b=Dx0ZVuqD3bXe3BgbfZKoaF5j9ZeeN/9Q2luLy2PegzZgdAvIF3YB2si7lyrchs/AzqLGanfPK3PAjT2Kd7ZnTkYc+rZA5oDKHGclcj5hmKtd3yxCRdcAufpl8D+yAwzLyvudxBtAYLVwoq5Xk47mQcQzdzASx7KuAxPhMam2W/M= Received: from BN6PR15MB1507.namprd15.prod.outlook.com (10.172.151.147) by BN6PR15MB1634.namprd15.prod.outlook.com (10.175.127.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.14; Thu, 21 Mar 2019 18:29:28 +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; Thu, 21 Mar 2019 18:29:28 +0000 From: "Sugar, David" To: "selinux-refpolicy@vger.kernel.org" Subject: [PATCH 1/1] Resolve denial about logging to journal from dbus Thread-Topic: [PATCH 1/1] Resolve denial about logging to journal from dbus Thread-Index: AQHU4BQEjDbnyMqkw0KmgmKSV/vP6w== Date: Thu, 21 Mar 2019 18:29:27 +0000 Message-ID: <20190321182844.27557-2-dsugar@tresys.com> References: <20190321182844.27557-1-dsugar@tresys.com> In-Reply-To: <20190321182844.27557-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: MN2PR16CA0030.namprd16.prod.outlook.com (2603:10b6:208:134::43) 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: 017e0a4e-5502-44dd-fc91-08d6ae2b266c 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:BN6PR15MB1634; x-ms-traffictypediagnostic: BN6PR15MB1634: x-microsoft-antispam-prvs: x-forefront-prvs: 0983EAD6B2 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(396003)(376002)(366004)(39840400004)(346002)(199004)(189003)(2351001)(106356001)(50226002)(102836004)(4744005)(8936002)(386003)(86362001)(26005)(52116002)(1076003)(2616005)(186003)(14454004)(81166006)(7736002)(53936002)(99286004)(486006)(305945005)(6506007)(76176011)(6436002)(81156014)(2501003)(256004)(476003)(446003)(71190400001)(8676002)(6486002)(5660300002)(3846002)(2906002)(6916009)(25786009)(11346002)(508600001)(97736004)(71200400001)(5640700003)(36756003)(6116002)(6512007)(316002)(105586002)(66066001)(68736007);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR15MB1634;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: pg/Nx177jt8xPxjjIyOvTL3BeZ0YlKoHeFmdanTBT6Cnh+9cbdinl4PGSiZfFCYqzhVHfmDrdabUPJblvTYY6Q75Owv0kvS720Zqe8MtnrqM2OA9jULGJkcuyUHazkbifJqp8RjpNr3HR36mQp+crOt7LilSOLcTNgY1kcAnNxwVuM5qITYbh3ca9ITALwb4WjsC7xqfJ3bVcBuN+lba64x+0UQsK8wuLJb3WhAWKEp5HSSenBnp5btoUeG9N7tfHtmjhztxrW6pwdKvuuJLQBaJjd7rejhKfYAeFm+YpKliywa2QA1al6jjAjPaSiN7O54wtTt1Yt40LLMeOlS5fSUHxk8+ce70RqF3e6U+mWn+2ObpClrXneevKhHhdRzDvh+DMwExQVmkvg9jbQ/nvlaxBmrUIuxJqZkmzuOKkV0= 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: 017e0a4e-5502-44dd-fc91-08d6ae2b266c X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2019 18:29:27.6562 (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: BN6PR15MB1634 Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org type=3DAVC msg=3Daudit(1553013821.597:9897): avc: denied { sendto } for = pid=3D7377 comm=3D"dbus-daemon" path=3D"/dev/log" scontext=3Dsystem_u:syste= m_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=3Dsystem_u:system_r:kernel_t:s0 = tclass=3Dunix_dgram_socket permissive=3D1 Signed-off-by: Dave Sugar --- policy/modules/services/dbus.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/services/dbus.te b/policy/modules/services/dbus= .te index 24d12c64..fd7e2436 100644 --- a/policy/modules/services/dbus.te +++ b/policy/modules/services/dbus.te @@ -162,6 +162,9 @@ ifdef(`init_systemd', ` # for /run/systemd/dynamic-uid/ init_list_pids(system_dbusd_t) init_read_runtime_symlinks(system_dbusd_t) + + # for journald /dev/log + kernel_dgram_send(system_dbusd_t) ') =20 optional_policy(` --=20 2.20.1