Re: /etc/mtab and per-process namespaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 04, 2005 at 11:20:12PM +0200, Bodo Eggert wrote:
> Al Viro <[email protected]> wrote:
> 
> > 4) If you insist on having /etc/mtab the same file in all namespaces,
> > you obviously will have its contents not matching at least some
> > of them.  Either have it separate in each namespace where you want
> > to see it, or simply use /proc/self/mounts instead.
> 
> So /proc/mounts should be a symlink to /proc/self/mounts?

; ls -l /proc/mounts
lrwxrwxrwx  1 root root 11 Oct  4 20:13 /proc/mounts -> self/mounts
;

like that, perhaps?  IOW, it's been done that way for almost 4 years
already...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux