Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2002 17:03:52 +0100
From:      "Patrick Bihan-Faou" <patrick@mindstep.com>
To:        <current@FreeBSD.ORG>, <stable@FreeBSD.ORG>
Subject:   RE: Junior Annoying Hacker Task
Message-ID:  <DBEFLLCPEGLPEAGOPLIHOELICNAA.patrick@mindstep.com>
In-Reply-To: <15452.50112.625066.914576@guru.mired.org>

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

I don't know whether the suggested approach is really a good one or not, but
as far as implementing some registry-like features in FreeBSD, we have
developped something that proves to be useful. The idea was to extend the
sysctl mechanism to make it dynamic from the user-land point of view. This
was implemented as a kernel module (a simple one too) and a modified sysctl
command line. With this mod we can add/remove nodes in the sysctl tree and
use it to store information that is needed by many applications.

The implementation we have is certainly rough, but it gets the job done and
represents a very easy and convenient tool for:
- sharing non sensitive bits of information between processes
- storing configuration/status data in an easy to use manner
- benefit from the tree like presentation of sysctl (building a gui around
this should be easy)
- don't loose the 'vi' compatibility (sysctl values can be loaded at boot
time from a text file)

Note that the security model around these 'user-land dynamic sysctl entries'
can be improved significantly, but as a proof of concept the mod is useful.

Some may argue that storing userland data in the kernel space is Not A Nice
Thing(tm) but it certainly makes things a lot easier.



Patrick.


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




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