[13109] in bugtraq

home help back first fref pref prev next nref lref last post

Re: Wmmon under FreeBSD

daemon@ATHENA.MIT.EDU (der Mouse)
Mon Dec 27 18:01:03 1999

Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Message-Id:  <199912271943.OAA04901@Twig.Rodents.Montreal.QC.CA>
Date:         Mon, 27 Dec 1999 14:43:39 -0500
Reply-To: der Mouse <mouse@RODENTS.MONTREAL.QC.CA>
From: der Mouse <mouse@RODENTS.MONTREAL.QC.CA>
X-To:         BUGTRAQ@SECURITYFOCUS.COM
To: BUGTRAQ@SECURITYFOCUS.COM

>> I should like to know why more apps don't require the *bsd
>> {proc,kern}fs interface.

Near as I can figure, it goes like this:

	Nobody mounts them because nobody uses them.

	Nobody uses them because they're never mounted.

> Under modern BSD4.4, the preferred method is using sysctl(3),(8), as
> opposed to kernfs.

Except kernfs exports some things sysctl doesn't - at least under
NetBSD, the variant with which I'm most familiar.

What are the sysctl analogs of /kern/msgbuf and /kern/rootdev, in
particular?  (/kern/rootdev is especially nice because it's directly
mountable; with sysctl you'd first have to create a writeable
filesystem somewhere to make a /dev entry in, leading to a
chicken-and-egg problem.)

Also, the filesystem interface has advantages over the sysctl
interface, for some uses.  In particular, the interface to userland is
*much* more stable, meaning that kernel/userland mismatches break it
significantly less often.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

home help back first fref pref prev next nref lref last post