Re: Conditional SymLinks

Ion Badulescu (ionut@moisil.cs.columbia.edu)
Sat, 13 Dec 1997 07:24:41 -0500 (EST)


On Fri, 12 Dec 1997, C. Scott Ananian wrote:

> On Fri, 12 Dec 1997 "Adam D. Bradley" <artdodge@cs.bu.edu> wrote:
>
> > /tmp (symlink) -> /proc/uidtmp
> > /proc/uidtmp is an on-the-fly symlink (like /proc/self)
> > to -> /realtmp/<euid> (or whichever UID field is apropos)
> > (Where "realtmp" some directory name settable with a proc entry or
> > sysctl). And the /realtmp/<uid> files can actually be whatever you
> > like, e.g. individual symlinks to "/home/username/tmp/"
> >
> I like your idea. Any chance Linus would accept a patch? If no one else
> is interested in writing this, I might code it myself over Christmas...

This is a step in the right direction, but before anyone wastes more time
working on a completely unportable solution (with minimal chances of ever
making it into the kernel), please have a look at

http://www.cs.columbia.edu/~ezk/am-utils/

specifically at hlfsd (home-link filesystem daemon). It implements exactly
what you want, through a user-space nfs daemon, is portable and keeps
unnecessary stuff out of the kernel.

Ionut

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.