Re: procfs permissions on 2.6.x

From: viro
Date: Sun Jul 04 2004 - 20:56:52 EST


On Mon, Jul 05, 2004 at 10:50:19AM +0900, Clemens Schwaighofer wrote:
> Well perhaps I am on the wrong track but eg /proc/bus/usb/002/005 is my
> digital camera and unless its either world rw or owned by me (user) I
> can't get any pictures unless I make myself root.
>
> So yes, I would want to have chown/chmod in procfs ...

... except that /proc/bus/usb/* is not in procfs. BTW, it makes more sense
to change GID of the file in question and make it group-writable, adding the
users who are allowed to mess with it into the group.
-
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/