From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 22 16:46:22 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A048106566B for ; Wed, 22 Aug 2012 16:46:22 +0000 (UTC) (envelope-from holger@freyther.de) Received: from mail.sysmocom.de (sysmocom.de [78.46.147.233]) by mx1.freebsd.org (Postfix) with ESMTP id DB0DA8FC08 for ; Wed, 22 Aug 2012 16:46:21 +0000 (UTC) Received: from sangmingze-mail.local (berligate.hmw-consulting.de [83.236.178.202]) by mail.sysmocom.de (Postfix) with ESMTPSA id C286D2543428 for ; Wed, 22 Aug 2012 16:42:44 +0000 (UTC) Received: from ich by sangmingze-mail.local with local (Exim 4.80) (envelope-from ) id 1T4DzO-0001gZ-Sx for freebsd-emulation@freebsd.org; Wed, 22 Aug 2012 18:41:06 +0200 Date: Wed, 22 Aug 2012 18:41:06 +0200 From: Holger Hans Peter Freyther To: freebsd-emulation@freebsd.org Message-ID: <20120822164106.GE4301@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Linux SHM inside a jail X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 22 Aug 2012 16:46:22 -0000 Hi, I have found the old thread[1] about SHM Linux emulation and have them issues to get it to work inside a jail. I fail to create a /dev/shm directory for the devfs inside the jail. I added the 'link /tmp shm' to the /etc/devs.conf, I edited /etc/defaults/devfs.rules to attempt to unhide shm and 'shm/*' but the 'shm/' directory does not become visible inside the jail. any idea how to get this to work in a Jail? holger PS: I looked at both GLIBC ntpl/sem_open.c and linux_stats.c. One option would be to list another directory in /proc/mounts with tmpfs/shmfs and replicate the check in linux_stats.c for this alternative directory. [1] http://lists.freebsd.org/pipermail/freebsd-emulation/2011-January/008310.html