lkml.org 
[lkml]   [2005]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: /etc/mtab and per-process namespaces
    Date
    On Sunday 02 October 2005 17:08, David Leimbach wrote:
    > I've been just playing around with the v9fs work and private
    > namespaces from yesterday's [October 1, 2005] top of tree from Linus'
    > git archive and I was looking at /etc/mtab's reaction to having
    > multiple namespaces with bind mounts.

    Oh you don't need namespaces to hork mtab. Do a mount from a chroot
    environment. Or try to use --bind or --move mounts (at all) and watch it beg
    for mercy. (I accidentally ran UserMode Linux as root once, using a hostfs
    root filesystem to borrow the existing Linux's root filesystem, and its'
    mounts edited the parent system's /etc/mtab. Yeah, that was user error on my
    part, but it's also the _only_ gotcha I've found when doing that.)

    /etc/mtab is simply brittle. Personally, on systems I build, I ln
    -s /proc/mounts /etc/mtab

    Rob
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-10-22 19:04    [W:3.385 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site