Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp151280pxb; Thu, 17 Feb 2022 00:34:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMwIMEVDHLowpwjlnru6oh2Xxn88RKom3qRc3wOl/Ezci5v1MMEGyGzX9aExwg2J1TVlRL X-Received: by 2002:a17:90b:4aca:b0:1b9:ed62:b917 with SMTP id mh10-20020a17090b4aca00b001b9ed62b917mr6189727pjb.237.1645086873180; Thu, 17 Feb 2022 00:34:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645086873; cv=none; d=google.com; s=arc-20160816; b=gdFK3uMbPhCuSgMJXHKoOmJHD72Fy8U2WEsXCgaA1oyvfuOrLTh06/bSpLifN8+8Lr bqnz6+E3X9eSZVd3vpo4dQceJoFKLPWbyaLqOmq0snfzECptzg9DHJKeaa5Ji5iNDIlA AooLSP2v6zUGl4xmUi9vXcgfDdKyNjOTg0ynam5FDTK6btRJfOQVSGUJUuHU7Dbv9Ghz /Byse+tyZoB5RpP6IGg9Bqn/68OCGqX0yHOWoy8t7Fkt9F/fFaaqp8GCZIa2hdRkx0Mf lg+pK5P56GCcUkHGJzBkpkz7nXZ481EOsaLUZgj6TwfxP61/sB2bs0Ms2GaATmHJddIX IOrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:reply-to:to:from :dkim-signature; bh=k2iCpIWXx6HT9nuWqVLueYudiiSqMvE7FPuZHcjkN8k=; b=Wy9BqVLdINVB4VyF1AwTOz5uOu5F1SM9EpAIOJZSQQTRxYEBPLEXZv7qmFIjCF/dTw gn75fNNsud8Kwk7NOlo5riXc5FVYFuqvaHgeS8+mhPVAgOTQe+iipbM/5299HZyl0qC7 NG5PEXBgB8e3eqI86lCXE1PloPYXqvn24j4PJj49trdzdyfPVEPHR0uS+9TYi9cyvYX9 45wa1BhUHxnZNPGyv58m1AJ8n657UiS3E2gAwsFyC6PxEPTOMCRXxdxZRp9u93Kx/jPa tFAIcBlzZ6H5xugqd/62jkkdJYs9k3wvuH7+KOebNQcAoaLEg0XoQxnw9csGF4Vv//oO J7Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=F7w7awx3; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3si18646303plr.520.2022.02.17.00.34.24; Thu, 17 Feb 2022 00:34:32 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=F7w7awx3; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232633AbiBQGwU (ORCPT + 22 others); 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" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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/