Date: Wed, 29 Dec 1999 12:36:10 +0100 (CET) From: Andrzej Bialecki <abial@webgiro.com> To: Doug White <dwhite@resnet.uoregon.edu> Cc: current@freebsd.org Subject: Re: SUBMIT: compat.linux.pathmunge Message-ID: <Pine.BSF.4.20.9912291221590.90404-100000@mx.webgiro.com> In-Reply-To: <Pine.BSF.4.21.9912281453041.94776-100000@resnet.uoregon.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 // <abial@webgiro.com> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.9912291221590.90404-100000>