Subject: Re: polyinstantiating /tmp and gdm From: Janak Desai Reply-To: janak@us.ibm.com To: russell@coker.com.au Cc: dwalsh@redhat.com, sgrubb@redhat.com, tmraz@redhat.com, klaus@atsec.com, Valdis.Kletnieks@vt.edu, sds@tycho.nsa.gov, selinux@tycho.nsa.gov In-Reply-To: <200606140000.44403.russell@coker.com.au> References: <1150206426.18955.17.camel@localhost.localdomain> <200606140000.44403.russell@coker.com.au> Content-Type: text/plain Date: Tue, 13 Jun 2006 10:10:22 -0400 Message-Id: <1150207823.18955.20.camel@localhost.localdomain> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Wed, 2006-06-14 at 00:00 +1000, Russell Coker wrote: > On Tuesday 13 June 2006 23:47, Janak Desai wrote: > > I have figured out a way to get gdm/X to work with a polyinstantiated > > /tmp. In my previous attempts I was bind mounting original /tmp/.X11-unix > > on /instance/.X11-unix and then expecting the socket to be visible > > after bind mounting the instance on the original /tmp. Now I understand > > why that doesn't work. What we need is to make the original /tmp (or > > in our case just the /tmp/.X11-unix) available from alternative location > > outside of /tmp before it is mounted over. If you remember, this was > > in Stephen's original design but we removed it because we couldn't find > > any use for it. Now we have :-). This is still a very specific use, so > > I am going to special case it with instance.init script and NOT bring > > back the "original" directory code that was present in the earlier > > incarnation of the pam_namespace. The only change to pam_namespace module > > will be to always execute the instance.init script as opposed to only at > > the time of the instance creation. > > We seem to be spending a lot of effort on supporting what was always a bad > idea (putting such things under /tmp). > > Maybe a better option is to have the socket created under /var/run/.X11-unix > and have /tmp/.X11-unix be a sym-link to /var/run/.X11-unix. Creating a new > sym-link under each poly directory is less work than doing yet another mount. > Note that this doesn't only apply to .X11-unix, there's .font-unix as well > and probably some other daemons out there doing other things. > Yes, I agree. Is there an X server config option that allows us to do this? I looked for it but couldn't figure out a way to make X not use /tmp. -Janak -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.