Re: [PATCH] towards a /proc-less user space

From: Keith Owens (kaos@ocs.com.au)
Date: Wed Mar 08 2000 - 21:50:21 EST


On Wed, 8 Mar 2000 16:24:01 -0700,
Erik Andersen <andersen@xmission.com> wrote:
>I just downloaded the source to modutils-2.1.121,
>modutils-2.2.2-pre8, and modutils-2.3.9 and every
>one of them has:
>
> open("/proc/modules", O_RDONLY)
>
>in insmod/lsmod.c along with the comment
>
> /* We've got no other option but to read /proc. */

For root users, lsmod uses query_module. For non root users, it reads
/proc/modules. No idea why it was coded that way, sys_query_module can
be used by anybody. Looks like a mistake, other module syscalls are
root only but query_module is generally available.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:15 EST