From owner-freebsd-current@FreeBSD.ORG Fri Jan 7 04:46:56 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 717C816A4CE for ; Fri, 7 Jan 2005 04:46:56 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E30343D3F for ; Fri, 7 Jan 2005 04:46:56 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j074mkgZ029935; Thu, 6 Jan 2005 20:48:46 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j074mkKG029934; Thu, 6 Jan 2005 20:48:46 -0800 Date: Thu, 6 Jan 2005 20:48:46 -0800 From: Brooks Davis To: Rob Message-ID: <20050107044846.GA28242@odin.ac.hmc.edu> References: <41DDC4F2.5090709@yahoo.com> <20050107003806.GA14003@odin.ac.hmc.edu> <41DE1248.3010807@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <41DE1248.3010807@yahoo.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-current Subject: Re: Xorg ICE vs. Xfce4 (4.2-RC3) needs fixing /etc/rc.d/cleartmp X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 04:46:56 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 07, 2005 at 01:38:32PM +0900, Rob wrote: > Brooks Davis wrote: > >On Fri, Jan 07, 2005 at 08:08:34AM +0900, Rob wrote: > > > >>Hi, > >> > >>I'm testing Xfce 4.2-RC3, but it has following problems at startup: > >> > >>---------------- .xsession-errors > >>_IceTransmkdir: ERROR: euid !=3D 0,directory /tmp/.ICE-unix will not be= =20 > >>created. > >>_IceTransSocketUNIXCreateListener: mkdir(/tmp/.ICE-unix) failed, errno = =3D 2 > >>_IceTransMakeAllCOTSServerListeners: failed to create listener for local > >>xfce4-session: Unable to establish ICE listeners: Cannot establish any= =20 > >>listening sockets > > > > > >>The patch below from Pawel Worach solves the problem. > > > > > >Could you please try the following patch? It does the same thing, but > >gives the inode paranoid a way to disable the creation of these > >directories or only create the ones they need. > > > >-- Brooks > > > >Index: rc.d/cleartmp > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >RCS file: /usr/cvs/src/etc/rc.d/cleartmp,v > >retrieving revision 1.11 > >diff -u -p -r1.11 cleartmp > >--- rc.d/cleartmp 7 Oct 2004 13:55:25 -0000 1.11 > >+++ rc.d/cleartmp 7 Jan 2005 00:31:51 -0000 > >@@ -35,5 +35,7 @@ run_rc_command "$1" > > # restarting X > > # > > rm -f /tmp/.X[0-9]-lock > >-rm -fr /tmp/.X11-unix > >-mkdir -m 1777 /tmp/.X11-unix > >+if [ -n ${clear_tmp_xdirs} ]; then > >+ rm -fr ${clear_tmp_xdirs} > >+ mkdir -m 1777 ${clear_tmp_xdirs} > >+fi >=20 > Brooks, >=20 > Inode paraniods are not concerned about *removing* these tmp_xdirs, but > more about creating them, right? Moreover, if these tmp_xdirs are already > there, and at some point ${clear_tmp_xdirs} is cleared, then the tmp_xdirs > will never be removed at a next reboot! > That won't make the paranoids happy.... >=20 > So I'd suggest to always remove them, but check whether you should create= =20 > them; > something like this: >=20 > rm -f /tmp/.X[0-9]-lock > -rm -fr /tmp/.X11-unix > -mkdir -m 1777 /tmp/.X11-unix > +rm -fr /tmp/.X11-unix /tmp/.font-unix /tmp/.ICE-unix > +case ${create_tmp_xdirs} in > +[Yy][Ee][Ss]) > + mkdir -m 1777 /tmp/.X11-unix /tmp/.font-unix /tmp/.ICE-unix > + ;; > +esac I prefer my idea. People who are really worried about the inodes know where to find rm(1). This allows people who do need some directories, but not others to change the list by editing rc.conf. Avoiding hardcoding these directories was a good portion of my goal. One could argue that create_tmp_sockdirs would be a better name on the principle that someone could add a non-X11 program that uses a similar scheme. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFB3hStXY6L6fI4GtQRAp2bAJ9DOlDyV2Ubv3HNj77OMOBe/4DWSACghp2Y aExdaDPLCUYSEt0Qa4IBl5k= =75RT -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--