Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Nov 1998 22:26:03 -0800 (PST)
From:      Don Lewis <Don.Lewis@tsc.tdk.com>
To:        hackers@FreeBSD.ORG
Subject:   questions about adding sysctl knobs
Message-ID:  <199811230626.WAA02686@salsa.gv.tsc.tdk.com>

next in thread | raw e-mail | index | archive | help

I'm looking for some guidance about adding sysctl knobs to the kernel.
My immediate task is to allow the new F_SETOWN code that I recently
committed to 3.0-current to be tuned by using sysctl instead of having
some fairly arbitrary policy decisions hard coded into the kernel.
I figure I need two knobs to do this.

The first knob would limit the allowable range of arguments to
fcntl(F_SETOWN).  The limits from most to least restrictive would be:
	the current process
	the current process group
	a process or process group in the current session
	any process or process group

The second knob would control whether credentials are be checked at
the time signals are sent.

Where should these knobs go in the name space, and what are the
other magic values I need to plug into the sysctl infrastructure?

Once I get this implemented, I've got another little project that
I want to build a sysctl tunable into from the start.

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



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