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 73F75C433F5 for ; Wed, 16 Feb 2022 15:41:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231878AbiBPPlP (ORCPT ); Wed, 16 Feb 2022 10:41:15 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbiBPPlO (ORCPT ); Wed, 16 Feb 2022 10:41:14 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 60207291F86 for ; Wed, 16 Feb 2022 07:41:02 -0800 (PST) Received: from [192.168.254.13] (unknown [72.85.44.115]) by linux.microsoft.com (Postfix) with ESMTPSA id 9E6D820BA5DF; Wed, 16 Feb 2022 07:41:01 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9E6D820BA5DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1645026062; bh=Np7cSs2VQqOR4HoqPOP8hs9MKSOoOo94StrTjXolYvU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=fff5n3DVol+UIKa9KZUfestw978GFsCnMthLxKlxQFXBbCJIkhRo7htbJEIoLxNtO G8WYJ/dMhGo7GrPh+hKml6e4UiQIsJ1AXpkT3OwAiWMWJKSW8xcgxaHbTmsHIqTlGM 0LqOT1YkMu7hLlSMB2jLW2AVuIFxVF6bsA1RbHdo= Message-ID: <25751c9c-5c83-b7e2-a261-d2b7f8d8883d@linux.microsoft.com> Date: Wed, 16 Feb 2022 10:40:59 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH] sddm role Content-Language: en-US To: Russell Coker , selinux-refpolicy@vger.kernel.org References: From: Chris PeBenito In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org 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. > 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. Also, config changes should be reflected in the appconfig-standard and appconfig-mls configs, in addition to -mcs. -- Chris PeBenito