<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5199&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / The abstract and network socket for X]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5199</link>
		<description><![CDATA[The most recent posts in The abstract and network socket for X.]]></description>
		<lastBuildDate>Tue, 30 Aug 2022 19:58:54 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: The abstract and network socket for X]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=37259#p37259</link>
			<description><![CDATA[<p>Thanks for the answers! I already switched to startx and yeap like you said X&#039;s running under my user account now.</p><div class="quotebox"><blockquote><div><p>Is that a joke? IMO Wayland is simpler than X.</p></div></blockquote></div><p>:-D I haven&#039;t checked Wayland, it may be way simpler! I&#039;m just saying that X doesn&#039;t seem hard to wrap my head around.</p><p>I&#039;ll check it out soon! Worst case I break my desktop env and I use timeshift to rollback. :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (Tritonio)]]></author>
			<pubDate>Tue, 30 Aug 2022 19:58:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=37259#p37259</guid>
		</item>
		<item>
			<title><![CDATA[Re: The abstract and network socket for X]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=37258#p37258</link>
			<description><![CDATA[<div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>When you say &quot;hand over to the normal user&quot; what do you mean? Who is the normal user? Do you mean that GDM somehow start a new X under the user that just logged in?</p></div></blockquote></div><p>Yes, that&#039;s right.</p><p>Check</p><div class="codebox"><pre><code>ps -C Xorg -o user</code></pre></div><p>^ That will show <span class="bbc">root</span> under SLiM but under GDM or after <span class="bbc">startx</span> it will show your normal, non-root, user.</p><p>This security improvement was pioneered by OpenBSD, who take it a stage further and run X under a chrooted special user.</p><div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>Do I gain something by having a graphical login screen?</p></div></blockquote></div><p>A bigger active code base and so more potential bugs and vulnerabilities. But I may be unduly cynical in that respect.</p><div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>does startx do the cookie generation (.Xauthority) when it&#039;s run?</p></div></blockquote></div><p>Yes.</p><div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>X seems like a relatively simple program to understand how it works in terms of who can do what</p></div></blockquote></div><p>Is that a joke? IMO Wayland is simpler than X.</p><div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>what&#160; extra does Wayland offer?</p></div></blockquote></div><p>Look it up. Many opinions are available.</p><div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>Is the benefits of Wayland usable only when I have multiple graphical users logged into one X at the same time?</p></div></blockquote></div><p>Wayland is intended to <em>replace</em> X. X can be run under Wayland for backwards compatibility.</p><p>Multiple graphical users can be logged into Wayland compositors at the same time.</p><div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>I guess with slim I can&#039;t have multiple graphically logged in users</p></div></blockquote></div><p>I think SLiM should allow that but it&#039;s been dead upstream for almost ten years now and it doesn&#039;t support login sessions correctly so you really shouldn&#039;t use it at all.</p><div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>I&#039;ve always wanted to try a tiling manager but I don&#039;t know if it will be worth it on a laptop screen.</p></div></blockquote></div><p>GNOME offers a Wayland version OOTB. I think a Wayland Plasma (KDE) option can be added with the qtwayland5 package.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 30 Aug 2022 19:45:11 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=37258#p37258</guid>
		</item>
		<item>
			<title><![CDATA[Re: The abstract and network socket for X]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=37257#p37257</link>
			<description><![CDATA[<p>Thank you for the info about slim and Wayland.</p><p>When you say &quot;hand over to the normal user&quot; what do you mean? Who is the normal user? Do you mean that GDM somehow start a new X under the user that just logged in? (I&#039;m assuming the X for the login screen of GDB runs as root, right?)</p><p>I can do startx after logging in on a console, that&#039;s fine by me. Do I gain something by having a graphical login screen? (I&#039;m also curious, does startx do the cookie generation (.Xauthority) when it&#039;s run?</p><p>I need to research Wayland. I&#039;ve known it by name and that it&#039;s a replacement for X but I know nothing beyond that. X seems like a relatively simple program to understand how it works in terms of who can do what, notwithstanding my ignorance on where the socket even is in the first post above. If I understand it correctly, If X is started (by slim in my case) and given the cookie of a user, no other user will be able to connect to that X anyhow. So what&#160; extra does Wayland offer? Is the benefits of Wayland usable only when I have multiple graphical users logged into one X at the same time? And I guess with slim I can&#039;t have multiple graphically logged in users.</p><p>I&#039;ve always wanted to try a tiling manager but I don&#039;t know if it will be worth it on a laptop screen. I&#039;ll check sway out. I was thinking of trying ratpoison at some point too.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tritonio)]]></author>
			<pubDate>Tue, 30 Aug 2022 18:30:50 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=37257#p37257</guid>
		</item>
		<item>
			<title><![CDATA[Re: The abstract and network socket for X]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=37248#p37248</link>
			<description><![CDATA[<p>If you are at all bothered by security in X then stop using SLiM. It runs X under the root user, which is really bad.</p><p>If you&#039;re wedded to a display manager then GDM will hand over X to the normal user rather than root but I would just use plain old <span class="bbc">startx</span> from a console login.</p><div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>Am I actually hardening my system when I disable them?</p></div></blockquote></div><p>Only against local attackers using the same machine while you are at the desktop. Seems unlikely.</p><div class="quotebox"><cite>Tritonio wrote:</cite><blockquote><div><p>steal keystrokes etc</p></div></blockquote></div><p>One of Wayland&#039;s selling points is user isolation in respect of keyboard input. Have you considered it? I use sway and it&#039;s wonderful IMO.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 30 Aug 2022 16:51:23 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=37248#p37248</guid>
		</item>
		<item>
			<title><![CDATA[The abstract and network socket for X]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=37230#p37230</link>
			<description><![CDATA[<p>I&#039;ve been disabling them for years with and I don&#039;t think I&#039;ve encountered a problem. I&#039;m disabling them assuming that by doing so, unless another user can open the Unix socket they won&#039;t be able to interact with my X to steal keystrokes etc.</p><p>Here&#039;s what I have right now:</p><div class="codebox"><pre><code>/etc$ grep -R nolisten 2&gt;/dev/null 
slim.conf:xserver_arguments   -nolisten tcp -nolisten local
X11/xinit/xserverrc:exec /usr/bin/X -nolisten tcp -nolisten local &quot;$@&quot;</code></pre></div><p>But why are these sockets enabled by default? Are my assumptions wrong? I think I&#039;ve read that the abstract socket is used by Snap but is that all? Am I actually hardening my system when I disable them?</p><p>EDIT: I did a bit more research and I realized that the X unix socket is /tmp/.X11-unix/X0 which is world writable. I&#039;m trying to figure out how to change this, I don&#039;t have other users that need X so I think it&#039;ll be ok to limit it to just my user (and root).</p><p>EDIT2: I now saw how the MIT-cookies work but I&#039;m still trying ot figure out the exact lifecycle of X. How does slim show up in my screen if I still haven&#039;t logged in but I then end up having the cookie to connect to X? In any case my initial question still stands, why keep the abstract and network socket around?</p>]]></description>
			<author><![CDATA[dummy@example.com (Tritonio)]]></author>
			<pubDate>Mon, 29 Aug 2022 15:20:57 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=37230#p37230</guid>
		</item>
	</channel>
</rss>
