Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6625DC433EF for ; Thu, 17 Feb 2022 06:52:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232633AbiBQGwU (ORCPT ); Thu, 17 Feb 2022 01:52:20 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232385AbiBQGwT (ORCPT ); Thu, 17 Feb 2022 01:52:19 -0500 Received: from smtp.sws.net.au (smtp.sws.net.au [144.76.241.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B79FA7A995 for ; Wed, 16 Feb 2022 22:52:03 -0800 (PST) Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id D7C60F24C; Thu, 17 Feb 2022 17:52:00 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1645080721; bh=k2iCpIWXx6HT9nuWqVLueYudiiSqMvE7FPuZHcjkN8k=; l=1228; h=From:To:Reply-To:Subject:Date:In-Reply-To:References:From; b=F7w7awx3dACfinHxaZDJT2HvL8CsQmqLUUdf+cJle/D46Ao/zc+uMVIHw3cR/bzeU CKPKg6bqA1kIZg0vwRx0lDjlJQYrITLpYNmT6/ol5hyisW45zbAS4oA4G7lltS5qtz eOAUK395VbYZShup5g6gzfN8jyD3v7KMFDiQ9Pg0= Received: by xev.coker.com.au (Postfix, from userid 1001) id 5DC0717343CA; Thu, 17 Feb 2022 17:51:56 +1100 (AEDT) From: Russell Coker To: selinux-refpolicy@vger.kernel.org, Chris PeBenito Reply-To: russell@coker.com.au Subject: Re: [PATCH] sddm role Date: Thu, 17 Feb 2022 17:51:56 +1100 Message-ID: <6355341.s7PlzKLaip@xev> In-Reply-To: <25751c9c-5c83-b7e2-a261-d2b7f8d8883d@linux.microsoft.com> References: <25751c9c-5c83-b7e2-a261-d2b7f8d8883d@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Thursday, 17 February 2022 02:40:59 AEDT Chris PeBenito wrote: > On 2/16/2022 08:12, Russell Coker wrote: > > This patch adds a role for the xdm program. It's needed by sddm because > > it uses PAM to run it's own worker process and thus needs to do all the > > checks for a valid session for it's own UID. > > IMO this is a bug in the code. Maybe, but I think we have to deal with this. > > Index: refpolicy-2.20220216/config/appconfig-mcs/seusers > > =================================================================== > > --- refpolicy-2.20220216.orig/config/appconfig-mcs/seusers > > +++ refpolicy-2.20220216/config/appconfig-mcs/seusers > > @@ -1,2 +1,3 @@ > > root:unconfined_u:s0-mcs_systemhigh > > __default__:unconfined_u:s0-mcs_systemhigh > > +sddm:xdm:s0 > > Did you try sddm:system_u instead? That seems like it could make the > change a bit simpler, since we won't need the additional xdm_r. That works I'll send an updated patch. > Also, config changes should be reflected in the appconfig-standard and > appconfig-mls configs, in addition to -mcs. OK I'll do that in the next patch too. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/