From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 17:42:04 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 A4B45106566B for ; Sat, 6 Mar 2010 17:42:04 +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 8BB3C8FC12 for ; Sat, 6 Mar 2010 17:42:04 +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 o26Hg1pf038696; Sat, 6 Mar 2010 12:42:01 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Ed Schouten Date: Sat, 6 Mar 2010 12:41:59 -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: <201003061241.59580.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 17:42:04 -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. Pretty or not the hack does the job. Thanks again! For the record the sshd that ships with Fedora 12 also had the same issue, and the hack fixes it as well (not surprisingly). (I'll stick with CentOS though, since blatantly lying about the kernel version doesn't give me warm fuzzies.) > 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. >