From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 14:29:43 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E27F91065672 for ; Sat, 6 Mar 2010 14:29:43 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id C7DA98FC12 for ; Sat, 6 Mar 2010 14:29:43 +0000 (UTC) Received: from jnielsen-2.local (jn@stealth.jnielsen.net [74.218.226.254]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o26ETdpf088507; Sat, 6 Mar 2010 09:29:40 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Ed Schouten Date: Sat, 6 Mar 2010 09:29:38 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) References: <201003021325.27197.lists@jnielsen.net> <20100306073117.GE8200@hoeg.nl> <20100306081238.GF8200@hoeg.nl> In-Reply-To: <20100306081238.GF8200@hoeg.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201003060929.38587.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? 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: Sat, 06 Mar 2010 14:29:44 -0000 On Saturday 06 March 2010 03:12:38 Ed Schouten wrote: > * Ed Schouten wrote: > > Unfortunately it doesn't contain any open() calls on /dev/ptmx, but I > > found a way to `fix' it: > > > > > > Behold, another way to fix this. Still not beautiful, but in my opinion > not too bad. Thanks! I'll give this a shot. BTW I'm running 8-STABLE.. not sure I included that info previously. > Index: sys/compat/linprocfs/linprocfs.c > =================================================================== > --- sys/compat/linprocfs/linprocfs.c (revision 204763) > +++ sys/compat/linprocfs/linprocfs.c (working copy) > @@ -1312,6 +1312,8 @@ > NULL, NULL, NULL, PFS_RD); > pfs_create_file(dir, "status", &linprocfs_doprocstatus, > NULL, NULL, NULL, PFS_RD); > + /* XXX: Hack to make ttyname() work. */ > + pfs_create_file(dir, "fd", NULL, NULL, NULL, NULL, PFS_RD); > > /* /proc/scsi/... */ > dir = pfs_create_dir(root, "scsi", NULL, NULL, NULL, 0); > > This creates a bogus file called /proc/%d/fd. Because of this, the > readlink() call will return ENOTDIR. >