Re: [RFC] [PATCH] allowing user mounts

From: Rik van Riel
Date: Thu Feb 19 2004 - 01:15:33 EST


On Tue, 17 Feb 2004, Miklos Szeredi wrote:

> This patch (against 2.6.3-rc4) allows the use of the mount syscall by
> non-root users in a controlled, and secure (I hope) way. I'd very
> much appreciate any comments,

Just as a curiosity, why not do this in userspace ?

You'll notice that /bin/mount already is a suid application,
so you could just add your functionality there, or write your
own suid mount application.

As an added bonus, you'd be able to have a more flexible
configuration framework then what would ever be accepted
into the kernel, without needing to go through the effort
of getting anything merged into the kernel.

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

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