lkml.org 
[lkml]   [2005]   [Mar]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
Subjectdo_umount strangeness?
From tvrtko.ursulin@sophos ...
DateMon, 21 Mar 2005 10:28:13 +0000
[Reposted due to wrong LKML address, sorry Al]

Hi,

Looking at linux-2.6.11/fs/namespace.c line 418:

if (mnt == current->fs->rootmnt && !(flags & MNT_DETACH)) {
     /*
        * Special case for "unmounting" root ...
I wonder is this really a test for root? Couldn't the current->fs->rootmnt 
"point" somewhere else if per-process namespaces are used? Is it intended 
that processes can't umount their own root, or better to say, to only be 
able to remount it read-only?


-
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-03-22 14:11    [from the cache]
©2003-2008