[lkml]   [2000]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] towards a /proc-less user space
On Wed, 8 Mar 2000 16:24:01 -0700, 
Erik Andersen <> 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
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:56    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean