Subject: Re: @booted_kernel magic symlink?
To: Hubert Feyrer <>
From: Steven M. Bellovin <>
List: tech-kern
Date: 04/24/2006 18:32:41
On Tue, 25 Apr 2006 00:06:32 +0200 (CEST), Hubert Feyrer
<> 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,