Date: Sat, 6 Mar 2010 09:29:38 -0500 From: John Nielsen <lists@jnielsen.net> To: Ed Schouten <ed@80386.nl> Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? Message-ID: <201003060929.38587.lists@jnielsen.net> In-Reply-To: <20100306081238.GF8200@hoeg.nl> References: <201003021325.27197.lists@jnielsen.net> <20100306073117.GE8200@hoeg.nl> <20100306081238.GF8200@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 06 March 2010 03:12:38 Ed Schouten wrote: > * Ed Schouten <ed@80386.nl> wrote: > > Unfortunately it doesn't contain any open() calls on /dev/ptmx, but I > > found a way to `fix' it: > > > > <snip> > > 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. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003060929.38587.lists>