lkml.org 
[lkml]   [2005]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectdo_umount strangeness?
From
Date
[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    [W:0.045 / U:0.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site