lkml.org 
[lkml]   [2007]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: does /proc/sys/kernel/modprobe actually do anything?
On Thu, 29 Nov 2007, Alexey Dobriyan wrote:

> On 11/29/07, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> > echo '#! /bin/sh' > /tmp/modprobe
> > echo 'echo "$@" >> /tmp/modprobe.log' >> /tmp/modprobe
> > echo 'exec /sbin/modprobe "$@"' >> /tmp/modprobe
> > chmod a+x /tmp/modprobe
> > echo /tmp/modprobe > /proc/sys/kernel/modprobe
> >
> > i've tried that and i don't see that it does anything whatsoever. i
> > ran modprobe under "strace" and it doesn't appear to make any effort
> > to check /proc/sys/kernel/modprobe.
>
> Kernel, not modprobe, checks /proc/sys/kernel/modprobe .

actually, ignore that earlier query of mine, i've found the relevant
code under kernel/ in sysctl.c and sysctl_check.c and kmod.c. but
it's still not clear why what is described in
Documentation/debugging-modules.txt (and shown above) doesn't work, so
i'm still open to suggestions. thanks.

rday
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

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

\
 
 \ /
  Last update: 2007-11-29 14:01    [W:0.389 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site