On Tue, 28 Dec 1999, Doug White wrote:
> Hello fellow hackers,
>
> I've written up a short patch to add a sysctl to control the appending of
> /compat/linux/ to path requests in Linux mode. We had to get ADSM's Linux
> client working on FreeBSD so we could do backups of our systems. Luckily
> it comes statically linked so all was needed was this sysctl and some
> creative redirections (there's a bug in the termio ioctl() emulation
> still...) to get it working.
Funny... I was in the process of doing almost exactly the same
changes. Initially, I've done this fo /tmp and /var only, because some
software was creating lock files _and_ IPC keys using (obviously) normal
/tmp and /var/tmp, and they ended up having very different values, which
somehow confused it...
Anyway, the solution I would suggest is to have more granularity instead
of all-or-nothing. I'd suggest a linked list of paths, set up by
compat.linux.pathmunge.paths, and the other sysctl to turn on the
checking. If the *paths sysctl is empty, it's equivalent to your
functionality.
Comments? :-)
Andrzej Bialecki
// <[EMAIL PROTECTED]> WebGiro AB, Sweden (http://www.webgiro.com)
// -------------------------------------------------------------------
// ------ FreeBSD: The Power to Serve. http://www.freebsd.org --------
// --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ----
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message