From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 08:12:39 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 A0848106566C for ; Sat, 6 Mar 2010 08:12:39 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 65D1B8FC1D for ; Sat, 6 Mar 2010 08:12:39 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id A68991CD18; Sat, 6 Mar 2010 09:12:38 +0100 (CET) Date: Sat, 6 Mar 2010 09:12:38 +0100 From: Ed Schouten To: John Nielsen Message-ID: <20100306081238.GF8200@hoeg.nl> References: <201003021325.27197.lists@jnielsen.net> <20100305092611.0000772c@unknown> <20100305091446.GZ8200@hoeg.nl> <201003060113.32628.lists@jnielsen.net> <20100306073117.GE8200@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Vvnl3ADXqZOiRkS3" Content-Disposition: inline In-Reply-To: <20100306073117.GE8200@hoeg.nl> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Alexander Leidinger , 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 08:12:39 -0000 --Vvnl3ADXqZOiRkS3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ed Schouten wrote: > Unfortunately it doesn't contain any open() calls on /dev/ptmx, but I > found a way to `fix' it: >=20 > Behold, another way to fix this. Still not beautiful, but in my opinion not too bad. Index: sys/compat/linprocfs/linprocfs.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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); =20 /* /proc/scsi/... */ dir =3D 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. --=20 Ed Schouten WWW: http://80386.nl/ --Vvnl3ADXqZOiRkS3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuSDnYACgkQ52SDGA2eCwUYGQCeMkbklLSMtYk14dPmoYK4xKje 9WQAn2R9U+rvlxwtAfSpm1/66PrSRP1U =PZ6f -----END PGP SIGNATURE----- --Vvnl3ADXqZOiRkS3--