Re: [Devel] Re: [patch 05/10] add "permit user mounts in new namespace" clone flag

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <ebiederm@...>
Cc: <serue@...>, <linuxram@...>, <linux-fsdevel@...>, <viro@...>, <containers@...>, <akpm@...>, <linux-kernel@...>
Date: Wednesday, April 18, 2007 - 5:11 am

> > I've tried to make this unprivileged mount thing as simple as

I hate suid as well.  _The_ motivation behind this patchset was to get
rid of "fusermount", a suid mount helper for fuse.

But I don't think suid is going away, and definitely not overnight.
Also I don't think we want to require auditing userspace before
enabling user mounts.

If I understand correctly, your proposal is to get rid of MNT_USER and
MNT_ALLOWUSERMNT and allow/deny unprivileged mounts and umounts based
on a boolean sysctl flag and on a check if the target namespace is the
initial namespace or not.  And maybe add some extra checks which
prevent ugliness from happening with suid programs.  Is this correct?

If so, how are we going to make sure this won't break existing
userspace without doing a full audit of all suid programs in every
distro that wants this feature?

Also how are we going to prevent the user from creating millions of
mounts, and using up all the kernel memory for vfsmounts?

Miklos
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 05/10] add "permit user mounts in new namespace" ..., Eric W. Biederman, (Fri Apr 13, 12:45 am)
Re: [patch 05/10] add "permit user mounts in new namespace" ..., Eric W. Biederman, (Fri Apr 13, 10:22 am)
Re: [Devel] Re: [patch 05/10] add "permit user mounts in new..., Eric W. Biederman, (Mon Apr 16, 11:43 am)
Re: [Devel] Re: [patch 05/10] add "permit user mounts in new..., Eric W. Biederman, (Mon Apr 16, 3:16 pm)
Re: [Devel] Re: [patch 05/10] add "permit user mounts in new..., Eric W. Biederman, (Tue Apr 17, 5:04 am)
Re: [Devel] Re: [patch 05/10] add "permit user mounts in new..., Eric W. Biederman, (Tue Apr 17, 2:16 pm)
Re: [Devel] Re: [patch 05/10] add "permit user mounts in new..., Eric W. Biederman, (Tue Apr 17, 3:54 pm)
Re: [Devel] Re: [patch 05/10] add "permit user mounts in new..., Miklos Szeredi, (Wed Apr 18, 5:11 am)
Re: [Devel] Re: [patch 05/10] add "permit user mounts in new..., Eric W. Biederman, (Wed Apr 18, 1:14 pm)