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=-6.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_PASS,URIBL_BLOCKED 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 CD908C43387 for ; Tue, 15 Jan 2019 07:47:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9389620578 for ; Tue, 15 Jan 2019 07:47:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=coker.com.au header.i=@coker.com.au header.b="RWTtUP3s" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727062AbfAOHrX (ORCPT ); Tue, 15 Jan 2019 02:47:23 -0500 Received: from smtp.sws.net.au ([46.4.88.250]:40744 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbfAOHrX (ORCPT ); Tue, 15 Jan 2019 02:47:23 -0500 Received: from liv.localnet (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 32182EDA9; Tue, 15 Jan 2019 18:47:19 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1547538441; bh=9uIRH3xwN7BwMy1X4DSXuC+SQADgyps/Tj4NIeLCOIE=; l=1198; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RWTtUP3sPKbv6Z/kgtUpblnosFu/2WlCd/EGlnXQ397mHeCFuRxyLLZm1BO51vlzh E62vC7AUGyNGKoEKd9DMDcX9CcLjqxWQz0svOhroTRE+gvnGsZK4+TQwTKrd6TtO+R ppDRhwkeU8Yn7jv1aEArpKpsblBQYE2RXpPvF2FQ= From: Russell Coker To: Chris PeBenito Cc: selinux-refpolicy@vger.kernel.org Subject: Re: [PATCH] some little stuff Date: Tue, 15 Jan 2019 18:47:13 +1100 Message-ID: <2480376.JRpnWL4ehX@liv> In-Reply-To: <4df64def-6cfe-af47-5c2a-dcdbf0d507e4@ieee.org> References: <20190111103043.GA22910@xev> <4df64def-6cfe-af47-5c2a-dcdbf0d507e4@ieee.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Sunday, 13 January 2019 6:28:35 AM AEDT Chris PeBenito wrote: > > Index: refpolicy-2.20180701/policy/modules/system/systemd.te > > =================================================================== > > --- refpolicy-2.20180701.orig/policy/modules/system/systemd.te > > +++ refpolicy-2.20180701/policy/modules/system/systemd.te > > @@ -337,6 +337,10 @@ optional_policy(` > > networkmanager_dbus_chat(systemd_hostnamed_t) > > ') > > > > +optional_policy(` > > + unconfined_dbus_send(systemd_hostnamed_t) > > +') > > This comment: > > https://github.com/SELinuxProject/refpolicy/issues/18#issuecomment-452316615 > > makes me rethink all dbus sends to unconfined domains, especially > unconfined_t. This here isn't all confined domains, but I want more > consideration for the perm. That comment is about allowing all domains to send to unconfined_t. Allowing specific domains like systemd_hostnamed_t to send to unconfined_t doesn't seem like a problem. It doesn't seem likely that an attack via dbus would start with a systemd domain, especially not one like systemd_hostnamed_t. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/