[Status update] sysctlreg project

Alexander Leidinger Alexander at Leidinger.net
Tue Jun 15 14:48:22 UTC 2010

Quoting John Baldwin <jhb at freebsd.org> (from Tue, 15 Jun 2010 09:58:29 -0400):

> On Tuesday 15 June 2010 3:24:52 am Alexander Leidinger wrote:
>> Quoting John Baldwin <jhb at freebsd.org> (from Mon, 14 Jun 2010 16:36:02
> -0400):
>> > Hmmm, is this spoofing a desired feature?  If so, perhaps it should
>> > be done in
>> > userland via environment options that affect the feature_present(3) API in
>> > libc?  (In that case you would write a little feature_present(1) util that
>> > uses the userland API and use this instead of direct sysctls in ports,
> etc.)
>> Kris listed spoofing (no mention if only "spoof-off" or also
>> "spoof-on", but for "spoof-on" when the feature is not present in the
>> kernel we can only come up with scenarios where it will hurt) as
>> desired for the ports collection.
>> Regarding an userland utility:
>> 1) To be able to spoof-off a feature in a jail (from the host, not
>> inside the jail) without the possibility that the jail-root is able to
>> turn it on again, a feature_present(1)+env will not help much, you
>> need to do this in the kernel.
>> 2) With 1) in mind, why another tool for the ports to query the
>> status, sysctl is enough.
> If you wish to do 1) though it seems wrong to have to have the same spoof
> settings for the entire host.  It would seem that you would want to have
> different feature sets in different jails.  So far the env approach has been
> good enough for spoofing uname data for ports builds.  I see no reason why it
> shouldn't be equally functional for feature test overrides for ports builds.

I agree that the env approach is enough if it is 'just ports'. What is  
your proposal? Just taking care about ports and forget about jails in  
the GSoC project?


We have an equal opportunity Calculus class -- it's fully integrated.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137

More information about the soc-status mailing list