do_umount strangeness?

From: tvrtko . ursulin
Date: Mon Mar 21 2005 - 05:29:06 EST


[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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/