Re: unprivileged mounts git tree

From: Eric W. Biederman
Date: Thu Sep 11 2008 - 06:45:19 EST

Miklos Szeredi <miklos@xxxxxxxxxx> writes:

> On Fri, 5 Sep 2008, Serge E. Hallyn wrote:
>> Ok I should take the time to properly add these to ltp, but for now here
>> is the result of 15-minutes of playing around with shell scripts to do
>> some basic testing.
>> Run as root first, then usermounts_user as a user.
>> Cleanup for the side-effects is not done.
>> Miklos, do you have better-thought-out or more complete testcases?
> Thanks for the scripts, I don't have any better ones, I have only been
> testing by hand.
> As for -mm, sure it would be nice. I'll do a resubmission of the
> whole series with proper changelog, etc. It would be really nice if
> Al and/or Christoph could review if there are any major conceptual
> problems left.

There is a weird corner case I'm trying to wrap my head around.
unlink and rmdir do not work on dentries that are mount points
in another mount namespace.

Which is at least needed for the moment so we don't leak mounts.

Once we have unprivileged mounts does that introduce a DOS attack?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at