Re: [PATCH 1/2] implement uid mount option for ext2

From: Jamie Lokier
Date: Fri Jul 24 2009 - 19:17:10 EST


John Stoffel wrote:
> I didn't read the original email closely, but I have to say that both
> of these plans don't sound good to me. If you can mount a filesystem,
> you're root already, so you can do any fixup you need.

What if someone lends you a 1TB disk, for you to browse it in your
favourite GUI or Shell Window to read some files from it? And you're
to put a couple of files on it before you give it back?

Hotplug scripts run as root to mount it, and you have your GUI / Shell
Window which don't run as root to read and write a few of those files.

You must not chown anything on the disk, because it isn't your disk.

> But in that case, you're screwed anyway and it's going to become
> un-manageable. Push this to userspace, not the kernel since it's a
> userspace issue when you come right down to it.

How do you handle the above scenario in userspace?

-- Jamie
--
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/