Re: [patch 8/9] unprivileged mounts: propagation: inherit owner from parent

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <serue@...>
Cc: <miklos@...>, <serue@...>, <akpm@...>, <hch@...>, <viro@...>, <ebiederm@...>, <kzak@...>, <linux-fsdevel@...>, <linux-kernel@...>, <containers@...>, <util-linux-ng@...>
Date: Tuesday, January 15, 2008 - 10:37 am

> > > > On mount propagation, let the owner of the clone be inherited from the

Right.


I assume, that the floppy and cdrom are already mounted with
nosuid,nodev.

The problem case is I think is if a sysadmin does some mounting in the
initial namespace, and this is propagated into the fully user-mounted
namespace (or chroot), so that a mount with suid binaries slips in.
Which is bad, because the user may be able rearange the namespace, to
trick the suid program to something it should not do.

OTOH, a mount with devices can't be abused this way, since it is not
possible to gain privileges to files/devices just by rearanging the
mounts.

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

Messages in current thread:
Re: [patch 8/9] unprivileged mounts: propagation: inherit ow..., Miklos Szeredi, (Tue Jan 15, 10:37 am)