linux-only jail possible?
Ed Schouten
ed at 80386.nl
Sat Mar 6 08:12:39 UTC 2010
* Ed Schouten <ed at 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.
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.
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20100306/a081e6d7/attachment.pgp
More information about the freebsd-emulation
mailing list