Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2001 09:50:51 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Nate Williams <nate@yogotech.com>, Peter Pentchev <roam@orbitel.bg>, arch@FreeBSD.org
Subject:   Re: new kldpath(8): display/modify the module search path
Message-ID:  <XFMail.010620095051.jhb@FreeBSD.org>
In-Reply-To: <3B304CF4.3A57593E@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20-Jun-01 Terry Lambert wrote:
> John Baldwin wrote:
>> 
>> On 20-Jun-01 Terry Lambert wrote:
>> > What is the interaction with /etc/modules.old, when you are
>> > booting a /kernel.old?
>> 
>> In -current (which is where kldconfig(8) is going, btw) all
>> modules live with their correspnding kernel in the same
>> directory under /boot.  Thus modules and kernel are in sync
>> for kernel.old, kernel, and
>> kernel.fix_it_after_joe_random_committer_broke_it.
> 
> I thought this change was backed out, after everyone
> hated it?

Nope.  Mostly cause everyone didn't hate it.

> Even so, what ensures that the path is not reset by some rc
> file to /boot/kernel, when the kernel that you booted was
> /boot/kernel.old/kernel.ko?
> 
> I don't see that putting the modules under /boot with the
> kernel module itself grants any protection from a bogus
> mismatched module coming in as the result of a kldpath
> command in an rc file in /usr/local/etc/rc.d, or /etc,
> for that matter.

Unix has traditionally allowed foot shooting.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010620095051.jhb>