Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5573229pxb; Mon, 28 Mar 2022 14:24:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdMQQQ2jR67yGqlINsdC1xEdwXAk7WCfvZaer7rxIHHAnHzcdYORExEsm2OnYyApOAfXCB X-Received: by 2002:a05:6870:538d:b0:de:aa91:898e with SMTP id h13-20020a056870538d00b000deaa91898emr567506oan.54.1648502675587; Mon, 28 Mar 2022 14:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648502675; cv=none; d=google.com; s=arc-20160816; b=vMExato+E3YW7AND0OjI341S7Zee/eJfdaCDk+ArKwT6cJjdQIZaWc6l0dcAuxevKU v46ThCFh64ebTSUUTQo5pCK4ibXN1xT/qrq2mDpIgFlEkuJoX/0LdozPol6N07maYiHp UOdODfE+ockBPnkTWe5TWdyTc6+54laGSSq2mHaldsWKmPSxIMLpbSsiHF4sA6EseDI/ sZxAnE/KscmJihJXbCWF2YJhPK28dD9D7cKytOOy0zj4UPoHKErFyt5sTaoIZcyG6FOl uXBJN63jikyDdDZUc0OBBQ5u5xB4PBrTu1Q9lCkmuKkCvQHmXIAV0YDtMHkp37dQQ29Y Oc3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=AektzOHyLmXG/4Yfv7hcUCGddUnJ97hgxEhY3Ywyv/E=; b=zoEnfVVyqd95ooP4UzABcEz7IAAr/KmGV5EPhQ9CKWoAxxrBcga+bS7KVZsZkUqYv6 Z0cpoGSJ0s1IXAziQHdn1KaO2c0dA5brD5E4qKTEWg5LHrK9pdKgFva0Wc7jPJ4o/10O SpJu+/mclxHpYr0mRqdlaYEkGn69Sb8GRvGVOPssy9uCj5LttBSljyNE4VjElSzjLFFS R1CFAHbcwnmV3l6Ap9msnj3rB7ft1RIvfwKmDsY/Jj4t66Q+BU2zdi4pPOfLH7cu7TEH jt5Cf55nS8pZe4B9DSq7ubcTWsZHWy7sCpRLukcfVh1SZp9kxQEKYbm0Lu/rdHNqV+09 Qs+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=WFjW41I1; spf=softfail (google.com: domain of transitioning selinux-refpolicy-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ieee.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z7-20020a056870e30700b000dad7551cebsi8065349oad.138.2022.03.28.14.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 14:24:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning selinux-refpolicy-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=WFjW41I1; spf=softfail (google.com: domain of transitioning selinux-refpolicy-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ieee.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 82A172DA92; Mon, 28 Mar 2022 14:09:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243777AbiC1OSM (ORCPT + 23 others); Mon, 28 Mar 2022 10:18:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243729AbiC1ORy (ORCPT ); Mon, 28 Mar 2022 10:17:54 -0400 Received: from mail-vk1-xa2d.google.com (mail-vk1-xa2d.google.com [IPv6:2607:f8b0:4864:20::a2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BE5923176 for ; Mon, 28 Mar 2022 07:16:14 -0700 (PDT) Received: by mail-vk1-xa2d.google.com with SMTP id m84so8065402vke.1 for ; Mon, 28 Mar 2022 07:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=AektzOHyLmXG/4Yfv7hcUCGddUnJ97hgxEhY3Ywyv/E=; b=WFjW41I14Z39vl+OE4qmzBWktcRpXBAjTejH8E8LIelURjkJhMWw1jmLK81uEgfp9H qE9jR4rKlfbA1GgYwZT87klxk1M10mNOjhnX4DLjB4CUHpmPiaNfpPza9jjugN5dcUn2 +0jX7rycl+r6lZYQVUwHIqfIJVmDiawiUr7CE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=AektzOHyLmXG/4Yfv7hcUCGddUnJ97hgxEhY3Ywyv/E=; b=Tp2xmt9nKw8O+yab5peLblfObW+d64n1WUrM5c10umbvc3jRJDNpYQ5B7BijOxSzBd nUFKWOuGZMtoAnDIHfEfudkVpn7I6mVawszO1uZWq1VpReoRB8brd1icCOgAZbq3pF5B 0hyfZmdVXbU8jrBgm2FV+3AUj0CsVuNm94GLrYEyG43GhA6774GBh8e1hbD1b677o7Pp EP4OKmTmPKEzYFhNKfWsntiCoturpp6LKBVanwR2Ilzqm85ALs3srS3Y9P1pBZBNmv/g Pe4GTu2hxClnOxI9aRUEUu0kqyJ5jRuLfAmRY5I1oAhZP1xFyldKXUCKHenczqxUFrCK 43Bw== X-Gm-Message-State: AOAM531N5jBGubphdp6Atb4IGN0t7rrfYt4N0a60YhPUMQGFf4e00xUx c+j2GisruMBr/8qiHrFx0lx42Q== X-Received: by 2002:a1f:a40d:0:b0:33e:cc56:70c6 with SMTP id n13-20020a1fa40d000000b0033ecc5670c6mr10631306vke.27.1648476967002; Mon, 28 Mar 2022 07:16:07 -0700 (PDT) Received: from [192.168.1.133] (pool-68-134-25-67.bltmmd.fios.verizon.net. [68.134.25.67]) by smtp.gmail.com with ESMTPSA id p3-20020a056122114300b00342e9f4293csm774680vko.17.2022.03.28.07.16.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Mar 2022 07:16:06 -0700 (PDT) Message-ID: Date: Mon, 28 Mar 2022 10:16:05 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] new sddm V2 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 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 3/27/22 08:15, Russell Coker wrote: > This patch addresses all previous issues and I think it's ready to merge. > > Signed-off-by: Russell Coker > > Index: refpolicy-2.20220326/policy/modules/services/xserver.te > =================================================================== > --- refpolicy-2.20220326.orig/policy/modules/services/xserver.te > +++ refpolicy-2.20220326/policy/modules/services/xserver.te > @@ -62,6 +62,10 @@ gen_tunable(xserver_object_manager, fals > ## > gen_tunable(xserver_allow_dri, false) > > +# for sddm to use pam for greeter > +role xdm_r; > +allow system_r xdm_r; > + > attribute x_domain; > > # X Events > @@ -145,6 +149,7 @@ fs_associate_tmpfs(xconsole_device_t) > files_associate_tmp(xconsole_device_t) > > type xdm_t; > +role xdm_r types xdm_t; > type xdm_exec_t; > auth_login_pgm_domain(xdm_t) > init_domain(xdm_t, xdm_exec_t) > @@ -843,6 +848,9 @@ manage_files_pattern(xserver_t, xdm_tmp_ > manage_lnk_files_pattern(xserver_t, xdm_tmp_t, xdm_tmp_t) > manage_sock_files_pattern(xserver_t, xdm_tmp_t, xdm_tmp_t) > > +# for sddm to use pam for greeter, sddm greeter needs execmod > +allow xdm_t xdm_tmpfs_t:file execmod; > + > # Run Xorg.wrap > can_exec(xserver_t, xserver_exec_t) > > @@ -1009,3 +1017,6 @@ allow xserver_unconfined_type { x_domain > allow xserver_unconfined_type xextension_type:x_extension { query use }; > allow xserver_unconfined_type { x_domain xserver_t }:x_resource { read write }; > allow xserver_unconfined_type xevent_type:{ x_event x_synthetic_event } { send receive }; > + > +# for sddm to use pam for greeter > +gen_user(xdm,, xdm_r, s0, s0) > Index: refpolicy-2.20220326/config/appconfig-mcs/seusers > =================================================================== > --- refpolicy-2.20220326.orig/config/appconfig-mcs/seusers > +++ refpolicy-2.20220326/config/appconfig-mcs/seusers > @@ -1,2 +1,3 @@ > root:unconfined_u:s0-mcs_systemhigh > __default__:unconfined_u:s0-mcs_systemhigh > +sddm:xdm:s0 > Index: refpolicy-2.20220326/config/appconfig-mcs/xdm_default_contexts > =================================================================== > --- /dev/null > +++ refpolicy-2.20220326/config/appconfig-mcs/xdm_default_contexts > @@ -0,0 +1 @@ > +system_r:xdm_t:s0 system_r:xdm_t:s0 > Index: refpolicy-2.20220326/config/appconfig-mls/xdm_default_contexts > =================================================================== > --- /dev/null > +++ refpolicy-2.20220326/config/appconfig-mls/xdm_default_contexts > @@ -0,0 +1 @@ > +system_r:xdm_t:s0 system_r:xdm_t:s0 > Index: refpolicy-2.20220326/config/appconfig-standard/xdm_default_contexts > =================================================================== > --- /dev/null > +++ refpolicy-2.20220326/config/appconfig-standard/xdm_default_contexts > @@ -0,0 +1 @@ > +system_r:xdm_t system_r:xdm_t > Index: refpolicy-2.20220326/config/appconfig-mls/seusers > =================================================================== > --- refpolicy-2.20220326.orig/config/appconfig-mls/seusers > +++ refpolicy-2.20220326/config/appconfig-mls/seusers > @@ -1,2 +1,3 @@ > root:root:s0-mls_systemhigh > __default__:user_u:s0 > +sddm:xdm:s0 > Index: refpolicy-2.20220326/config/appconfig-standard/seusers > =================================================================== > --- refpolicy-2.20220326.orig/config/appconfig-standard/seusers > +++ refpolicy-2.20220326/config/appconfig-standard/seusers > @@ -1,2 +1,3 @@ > root:root > __default__:user_u > +sddm:xdm:s0 Merged. -- Chris PeBenito