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.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message