Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1010236pxb; Thu, 28 Jan 2021 06:08:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/+qOABnsMewpVCo7/nQi2hUl72CsDmgaKfDdPLh1Mz3eN6gsrllJyK1ftJG915uAW3WWP X-Received: by 2002:a50:eb81:: with SMTP id y1mr13809826edr.176.1611842530993; Thu, 28 Jan 2021 06:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611842530; cv=none; d=google.com; s=arc-20160816; b=YBGL9ZIjieeFcQUxq1GIC7+IZQRdqsMPfFn/o0XOVijK8AkjqU1FlL+CrXdh8Zd2IY g7Xl+l3Rbn/AF3+nGRA+ufyDFrwwm1HQXmX+wF2aNeExVRumNpiZKzRFc44ilbs+WK4Z H5d1C6i1LPqHO3SPGUUpOTyOAmYeAVobbxO9BiZkjg5m0R7yszmHei6WQrQflkEkAGr5 TZfo3TioVjn7FzD1yxkMHTSTQMF2dX8zgRuVh6qBCfrMhzh4RKnhz345gOzrPd8zuOOq QRYqYvKSYCkP/Kg+MkYNPFzxPCJIPknYBppiShneiME9grN82OOTSRvMG/cj5kO3PTpY I5VQ== 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:cc:to:from :dkim-signature; bh=EjQTkd89MRnps+l9qL50o+IPu4gyAyEJuSgvZ0ivAHM=; b=Hayxp4hzRXIKm0EjyOcHlbmbKLxXUJJRt5UlctSSYKmT2R/aVL0b/Qet7HbGPWWMe9 GqyWDb/5551VXr6WWUghyYGQJ9qn0ULYveGb/irmE965lizF9FmXbHODGKzEUuYRKeKj OQvIZFZlin9GJErVbW1FXJtz7Ma9IKVWIZK6geowt9p1QrJMr3iYlncU9A1t0EoIPhDk hCJQXY0kpg4ch0ZcBuKhef+CZebbCNueCxbIeDQ2oUKtpB3ozDp5bZkUrVXbvVmtd1Px /8jNgOjbaoa5ukmswqjp1TzfBex2tpOV3f3TePwRdanmspmNb9PEp6sD1jHUF/KIP+F9 6VGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=Pj53ST5e; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si3129260edj.169.2021.01.28.06.02.03; Thu, 28 Jan 2021 06:02:10 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=Pj53ST5e; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 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 S229651AbhA1OBP (ORCPT + 16 others); Thu, 28 Jan 2021 09:01:15 -0500 Received: from smtp.sws.net.au ([46.4.88.250]:54790 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbhA1OBP (ORCPT ); Thu, 28 Jan 2021 09:01:15 -0500 Received: from liv.coker.com.au (unknown [103.75.204.226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: russell@coker.com.au) by smtp.sws.net.au (Postfix) with ESMTPSA id C38781739A; Fri, 29 Jan 2021 01:00:30 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1611842431; bh=EjQTkd89MRnps+l9qL50o+IPu4gyAyEJuSgvZ0ivAHM=; l=1293; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pj53ST5ebmm9DTSDcAlKVFqShyEP4AzaCE4ZscTRlw8cUauXa2Ghpj8doVCcW/JET gPDUMHyTgNZBu4QaCFMrcr6HPbD97/3pIt/1ryu8XWFY+i7AD73SH2K2grPklLPlGW 4NxpeKpoN0yHNuY34RHvuk5HxsLzx/zuu3+CpUdc= From: Russell Coker To: Dominick Grift Cc: selinux-refpolicy@vger.kernel.org Subject: Re: sddm issue and patch not for inclusion Date: Fri, 29 Jan 2021 01:00:26 +1100 Message-ID: <1944791.8TnJqL1ZiL@liv> In-Reply-To: References: 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, 28 January 2021 10:36:19 PM AEDT Dominick Grift wrote: > >> In Debian/Unstable (which will soon be frozen and become the next stable > >> release) the sddm X login program (the one that's generally recommended > >> and specifically known to generally work well with SE Linux) uses PAM to > >> start a session for the "greeter" (the program that asks for a password > >> before a new session is started). > >> > >> With the policy currently in Debian that means the sddm user matches > >> "__default__" and gets unconfined_u:unconfined_r:unconfined_t, not what > >> is desirable for a program that takes input from unauthenticated users. > >> > >> role xdm_r; > >> role xdm_r types xdm_t; > >> allow system_r xdm_r; > >> allow xdm_t xdm_tmpfs_t:file execmod; > > > > that looks like a bug or at least bad code That's a design decision. One could make a convincing argument that it's a good decision. > >> corecmd_bin_entry_type(xdm_t) > > Also wondering what or which bin_t file or files this applies to and if > it instead is not possible to give these a private type /usr/bin/sddm-greeter. Yes I can give it a private type, might be a good idea in any case. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/