Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43DB6318EC4 for ; Wed, 6 May 2026 18:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.67.36.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778091525; cv=none; b=pD7yZhIY5siPmLgz3n381R96kQtq6ZytkQs+zI5g69xNO7Yn7lVtDVpDPNRC6Zz2lQzrviDaUQILRP8evVZdZy9OyAeEyC5g6eS67kA0BZoqn04NvpvrX85XbzRqp/LjnDT11S8NrmDXviXaxauXm4oyRfgRnoU0l9Eh6LYTTZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778091525; c=relaxed/simple; bh=hTx9UhIeseyGHKNPYbO6qC67kRfwQ6ZIxxPSS7r4koc=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=EorKKumkfyW0PSraNeuR8OoLGy7Vmk9fc4J8GQrmBIMij41LyaOLOv/bW1k/6p0rsRzhub7Xq0bxnHjQhBW31NKn/6tm5ScfnJOZ4eGYBghFveDowOdGoHqGeKjYqEDBQ+FmxKO3ArKjt1YjDnRpKIMROli63cmOcrr13uyt+Gk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.uk; spf=pass smtp.mailfrom=posteo.uk; dkim=pass (2048-bit key) header.d=posteo.uk header.i=@posteo.uk header.b=pKAiFvML; arc=none smtp.client-ip=185.67.36.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=posteo.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=posteo.uk header.i=@posteo.uk header.b="pKAiFvML" Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 06604242100 for ; Wed, 6 May 2026 20:18:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.uk; s=2017; t=1778091521; bh=hTx9UhIeseyGHKNPYbO6qC67kRfwQ6ZIxxPSS7r4koc=; h=Mime-Version:Content-Transfer-Encoding:Content-Type:Date: Message-Id:Cc:Subject:From:To:From; b=pKAiFvMLXXFJED8u15+ZnjzcOT7Ls+7prBkQguUSVu0n6+Uuu7v4WBramxO+g499F XCFS9QPCdAfZv05NF6gT1f9HN9LVKlEE1f4Q9/Csk9w6xLFIqxj6VKy7x7hzbbiOZ9 /zir8NqWMYAvy5qTYiRkUxjlj46CdC4wyDDosUw6tkAdb/vNPLrJ9s2BWKDwGnnBgR V1VFLlxxyjbMqgdFNxg0Yvubq1jzx51SGdo9Tfph1ri8qEOaOQX3lnysAwGNBU+wmb CbKN65279O/i1GR16EByNLx7o9ulaOlonCFKms4aJBs/zgzm/vf6O5DacgicmUVyOQ oApS5ehpWxVOQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4g9kCh3vp4z9rxG; Wed, 6 May 2026 20:18:40 +0200 (CEST) Precedence: bulk X-Mailing-List: selinux-refpolicy@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 06 May 2026 18:18:40 +0000 Message-Id: Cc: Subject: Re: xserver policy From: "Rahul Sandhu" To: , "Rahul Sandhu" References: <3438641.44csPzL39Z@xev> In-Reply-To: <3438641.44csPzL39Z@xev> On Wed May 6, 2026 at 9:50 AM BST, Russell Coker wrote: > On Wednesday, 6 May 2026 18:17:33 AEST Rahul Sandhu wrote: >> The other thing to consider is Xwayland. I don't personally use it (or X= org) >> at all myself, however I do know that some stuff still requires Xwayland >> and it is very common as of 2026. It might be worth seeing if there is s= ome >> bits that we can share between a future xwayland_t and xserver_t, althou= gh >> that may turn out to be a fruitless endeavour, I'm not entirely sure wha= t >> Xwayland entails yet. > > Currently Xwayland is running without any domain transition and works fin= e in=20 > user_t, what do you think we need to do in addition to this? Ideally, we'd have an xwayland_t imo. I've been hacking on this on the Gent= oo side of things, so I'll submit something upstream when it's of decent quali= ty. Xwayland has a fair amount of attack surface and the codebase it's a part o= f (Xorg) has a poor security record in the past. Also, whilst most compositor= s run Xwayland rootless now (either via doing it directly like say wlroots do= es or using something like xwayland-satellite like numerous of the new smithay compositors), there are still quite a few running it rootful. Hence, I am personally of the opinion that it's a good target for a private domain. Ideally, I'm looking to slowly get the major components of modern desktops, such as the compositor and desktop tooling into some form of private domain= . Whilst it will be a lot less granular for more complex desktop environments with a monolithic design (such as say Gnome), a lot of the components of th= e "modern" Wayland desktop are both security critical targets that function a= s a security boundry of some kind while also being reasonably modular such th= at a private domain is actually within the realm of possibility for them. I'm also currently working quite a bit on the portals. The labelling situat= ion is not the best for them, as the entire document portal has all documents a= s fuse_t. This is because fuse is not a seclabelfs, something which I intent = to try and solve upstream in the kernel. This is however quite a bit of work a= s previous efforts to do as such have resulted in deadlocks. --=20 Rahul Sandhu