Subject: Re: @booted_kernel magic symlink?
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: tech-kern
Date: 04/24/2006 17:41:35
IMO, the energy spent on this would be better spent making programs not
access kernel memory directly.

    -- Garrett

Steven M. Bellovin wrote:
> On Tue, 25 Apr 2006 00:06:32 +0200 (CEST), Hubert Feyrer
> <hubert@feyrer.de> wrote:
>
>   
>> On Mon, 24 Apr 2006, Chapman Flack wrote:
>>     
>>> Would there be any objections to an additional magic symlink
>>> pattern @booted_kernel, replaced from the corresponding
>>> CTL_MACHDEP sysctl node if the platform supplies it?
>>>
>>> It would be handy for those few remaining userland utilities
>>> that try to open the kernel by a fixed name for groveling,
>>> when you have a few built kernels in various stages of
>>> debugging.
>>>       
>> What programs do you have in mind?
>> While magic symlinks are all nice & dandy, I don't really feel confortable 
>> of relying on them...
>> (weren't they even backed out?)
>>
>>     
> Maybe we should have an (optional) rc.d script that reads the sysctl value
> and creates a real symlink.  It wouldn't work in single-user, but it would
> most of the time.
>
> 		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb
>   


-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191