From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 15 21:28:06 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D47F16A4CE for ; Fri, 15 Oct 2004 21:28:06 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C39CF43D53 for ; Fri, 15 Oct 2004 21:28:05 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.12.11) id i9FLS5kF000336; Fri, 15 Oct 2004 16:28:05 -0500 (CDT) (envelope-from dan) Date: Fri, 15 Oct 2004 16:28:04 -0500 From: Dan Nelson To: Andriy Gapon Message-ID: <20041015212804.GE88757@dan.emsphone.com> References: <416FD788.3090605@icyb.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <416FD788.3090605@icyb.net.ua> X-OS: FreeBSD 5.3-BETA7 X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-emulation@freebsd.org Subject: Re: unix domain sockets in linux emulation X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Oct 2004 21:28:06 -0000 In the last episode (Oct 15), Andriy Gapon said: > It seems that pathname "prefixing" is not performed for unix domain > socket calls in linux emulation e.g. "/compat/linux" prefix is never > tried to be prepended for bind() and connect() calls. Sounds like a bug to me. That would also make it difficult for linux apps to talk via unix sockets to native apps. The quick fix is to remove /compat/linux/tmp, so everything gets created in the real /tmp directory. I do this on all my machines anyway, since it simplifies troubleshooting and /tmp cleanup scripts. The full fix would probably be to add a call to LCONVPATH*() somplace inside so_sa_get(), so paths are converted just like with all the other syscalls. -- Dan Nelson dnelson@allantgroup.com