From owner-freebsd-current@FreeBSD.ORG Fri Jan 7 04:38:43 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 635CF16A4CE for ; Fri, 7 Jan 2005 04:38:43 +0000 (GMT) Received: from lp1001.snu.ac.kr (lp1001.snu.ac.kr [147.46.70.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBAFE43D45 for ; Fri, 7 Jan 2005 04:38:42 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [IPv6:::1] (localhost [127.0.0.1]) (authenticated (0 bits)) by lp1001.snu.ac.kr (8.13.1/8.11.6) with ESMTP id j074aF17001634; Fri, 7 Jan 2005 13:36:19 +0900 Message-ID: <41DE1248.3010807@yahoo.com> Date: Fri, 07 Jan 2005 13:38:32 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050105 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brooks Davis , freebsd-current References: <41DDC4F2.5090709@yahoo.com> <20050107003806.GA14003@odin.ac.hmc.edu> In-Reply-To: <20050107003806.GA14003@odin.ac.hmc.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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:38:43 -0000 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 != 0,directory /tmp/.ICE-unix will not be >>created. >>_IceTransSocketUNIXCreateListener: mkdir(/tmp/.ICE-unix) failed, errno = 2 >>_IceTransMakeAllCOTSServerListeners: failed to create listener for local >>xfce4-session: Unable to establish ICE listeners: Cannot establish any >>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 > =================================================================== > 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 Brooks, 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.... So I'd suggest to always remove them, but check whether you should create them; something like this: 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 And add to /etc/defaults/rc.conf: create_tmp_xdirs="YES" # Create directories needed by X11 I will check this today or tomorrow on my 5.3-Stable PC. Rob.