Commit Graph

1262 Commits

Author SHA1 Message Date
elad
cbaf7914e4 First attempt at an examples section, and while here also add some notes
about extending kauth(9).
2006-11-15 14:55:54 +00:00
ad
f2097c8b0d Remove misleading sentence, to be replaced by a manual page describing basic locking rules. 2006-11-14 15:30:09 +00:00
ad
316b72d710 Fix errors. 2006-11-13 18:28:15 +00:00
ad
bea3d13d1d Add manual pages for RW locks, mutexes and condition variables. Not
enabled in the Makefile.
2006-11-13 16:22:11 +00:00
dyoung
a25eaede91 Add a source-address selection policy mechanism to the kernel.
Also, add ioctls SIOCGIFADDRPREF/SIOCSIFADDRPREF to get/set preference
numbers for addresses.  Make ifconfig(8) set/display preference
numbers.

To activate source-address selection policies in your kernel, add
'options IPSELSRC' to your kernel configuration.

Miscellaneous changes in support of source-address selection:

        1 Factor out some common code, producing rt_replace_ifa().

        2 Abbreviate a for-loop with TAILQ_FOREACH().

        3 Add the predicates on IPv4 addresses IN_LINKLOCAL() and
          IN_PRIVATE(), that are true for link-local unicast
          (169.254/16) and RFC1918 private addresses, respectively.
          Add the predicate IN_ANY_LOCAL() that is true for link-local
          unicast and multicast.

        4 Add IPv4-specific interface attach/detach routines,
          in_domifattach and in_domifdetach, which build #ifdef
          IPSELSRC.

See in_getifa(9) for a more thorough description of source-address
selection policy.
2006-11-13 05:13:38 +00:00
plunky
57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
wiz
0db5a288e6 Fix a typo. 2006-11-04 17:16:24 +00:00
yamt
90101c023b be explicit about the difference between vmem_free and vmem_xfree. 2006-11-04 13:07:58 +00:00
yamt
bf894997ce document vmem_xalloc/xfree. 2006-11-04 12:55:28 +00:00
yamt
f0fcd48625 consistency. 2006-11-04 12:39:50 +00:00
elad
1121d7d96a Sync with reality. 2006-11-04 10:47:37 +00:00
wiz
e63079c2a4 Avoid punctuation markup; remove pastos (?). 2006-10-30 21:36:36 +00:00
elad
52d8744717 Use integers, not pointers to integers, for KAUTH_REQ_NETWORK_SOCKET_OPEN.
Reminded by yamt@, thanks!
2006-10-30 16:53:48 +00:00
wiz
f31bc9e7e9 Bump date for previous. 2006-10-26 17:54:52 +00:00
drochner
cb7efd18c2 minor fixes and cleanup, reviewed by elad 2006-10-26 17:33:11 +00:00
elad
04e6d5f932 Don't take chances... properly document KAUTH_NETWORK_INTERFACE. On a
second thought having that warning just in the CVS log doesn't look too
helpful. :)
2006-10-26 16:11:17 +00:00
elad
ed853f6398 Document that arg1 and arg2 for KAUTH_NETWORK_INTERFACE are optional.
Document that arg3 is optionally the interface-specific request. Should
only make sense if we pass ifnet * in arg1!
2006-10-26 16:06:39 +00:00
wiz
faa00b034c Fix typo, found by yamt. 2006-10-26 12:31:14 +00:00
wiz
1751d830e6 Various minor improvements. 2006-10-26 11:16:28 +00:00
elad
adf8d7aab2 Introduce KAUTH_REQ_NETWORK_SOCKET_OPEN, to check if opening a socket is
allowed. It takes three int * arguments indicating domain, type, and
protocol. Replace previous KAUTH_REQ_NETWORK_SOCKET_RAWSOCK with it (but
keep it still).

Places that used to explicitly check for privileged context now don't
need it anymore, so I replaced these with XXX comment indiacting it for
future reference.

Documented and updated examples as well.
2006-10-25 22:49:22 +00:00
elad
0730babc25 Sync documentation for KAUTH_PROCESS_CANSIGNAL with reality. 2006-10-24 10:23:05 +00:00
peter
157373e263 Fix a typo. 2006-10-23 21:21:49 +00:00
elad
6b1bc77758 Use consistent wording.
While here, undocument converstion routines for pcred/ucred, as these are
going to be deprecated. They already are, actually, but because we exposed
them to userland so cleverly with sysctl, it may require more thinking
before actually removing them. For now, just make sure nobody relies on
these types. Or at least try...
2006-10-22 14:00:00 +00:00
pooka
418e5b1cea reflect kauth uucred routine changes
thanks to Elad for reminding
2006-10-22 13:42:17 +00:00
yamt
2026cc5abb be consistent with other vmem pages. 2006-10-22 11:23:32 +00:00
yamt
4194eaeebd document vmem. 2006-10-22 11:14:52 +00:00
elad
d53df4ed98 Document KAUTH_NETWORK_INTERFACE arguments. 2006-10-21 00:07:40 +00:00
elad
305fe09181 Introduce a new action on the network scope, KAUTH_NETWORK_INTERFACE,
used to manage network interfaces.

Add four sub-actions to fulfill generic needs for now, until a more
carefully defined usage of the interface is documented: get, set,
getpriv, and setpriv.
2006-10-20 23:10:33 +00:00
elad
fab05f403b Add a new ALTQ kauth(9) request, KAUTH_REQ_NETWORK_ALTQ_JOBS. 2006-10-20 22:02:54 +00:00
pooka
c870120337 VOP_RENAME synopsis:
* tdvp points to a vnode, not a componentname.
* name of the source vnode is fvp, not vp
2006-10-19 13:44:00 +00:00
rpaulo
ebc62e8a33 Update structure. 2006-10-15 17:48:07 +00:00
wiz
abefc88512 Sort SEE ALSO. 2006-10-14 07:31:41 +00:00
wiz
ca5812394a New sentence, new line. Drop trailing whitespace. Sort sections.
Use .Er for errors.
2006-10-13 21:14:46 +00:00
wiz
8ac31fda0f Improve HTML output. 2006-10-13 21:06:51 +00:00
wiz
2bbc82f29e Bump date for previous. 2006-10-13 20:47:42 +00:00
elad
8c494ca741 Introduce KAUTH_REQ_NETWORK_SOCKET_CANSEE. Since we're not gonna be having
credentials on sockets, at least not anytime soon, this is a way to check
if we can "look" at a socket. Later on when (and if) we do have socket
credentials, the interface usage remains the same because we pass the
socket.

This also fixes sysctl for inet/inet6 pcblist.
2006-10-13 15:39:18 +00:00
wiz
361e86f38f Bump date for previous. 2006-10-13 00:20:00 +00:00
peter
dd191f37f3 Merge the peter-altq branch.
(sync with KAME & add support for using ALTQ with pf(4)).
2006-10-12 19:59:07 +00:00
rpaulo
f3330397f0 Modular (I tried ;-) TCP congestion control API. Whenever certain conditions
happen in the TCP stack, this interface calls the specified callback to
handle the situation according to the currently selected congestion
control algorithm.
A new sysctl node was created: net.inet.tcp.congctl.{available,selected}
with obvious meanings.
The old net.inet.tcp.newreno MIB was removed.
The API is discussed in tcp_congctl(9).

In the near future, it will be possible to selected a congestion control
algorithm on a per-socket basis.

Discussed on tech-net and reviewed by <yamt>.
2006-10-09 16:27:07 +00:00
uebayasi
a70b6fe53b No variable name in function argument declaration. 2006-10-09 07:52:59 +00:00
elad
75783f892c PR/31140: Tetsuya Isaki: driver(9) does not describe about kqfilter 2006-10-08 15:44:25 +00:00
pooka
e2f3993f69 VOP_REMOVE is supposed to vput the arguments before returning instead
of keeping them locked
2006-10-08 08:13:56 +00:00
cube
007b992d97 Synchronise documentation with code. E.g., config_search is no more, but
instead you have config_search_{loc,ia}.  Add documentation for
config_finalize_regsiter, too.  Mostly fixes PR#32106 by Gavan Fantom, as I
think the cfdriver_* and cfattach_* stuff should be documented too, but I'm
not entirely sure where yet.
2006-10-07 17:26:24 +00:00
chs
33c1fd1917 add support for O_DIRECT (I/O directly to application memory,
bypassing any kernel caching for file data).
2006-10-05 14:48:32 +00:00
pooka
d6ced1d27a fix slight ooops in previous 2006-10-04 12:39:05 +00:00
reinoud
64f9244532 Fix confusing statement on locking and contradiction in the VOP_RECLAIM()
explanation.

It told the node vp would be locked on entry and later told that the vnode
is unlocked on entry and should remain unlocked on exit.
2006-10-04 12:32:53 +00:00
pooka
9852bfb57e ucred -> kauth sweep 2006-10-04 11:35:47 +00:00
pooka
ecf7acf05b and lo, the uvm_coredump() peril was no more (since almost 5 years ago) 2006-10-04 11:27:45 +00:00
wiz
5eebb711b9 Use present tense for device scope, like for the others. 2006-10-03 02:06:28 +00:00
jld
af0234e90d Remove erroneous boilerplate about VOP_POLL's return value (which was
already described correctly earlier in the paragraph).
2006-09-30 21:18:38 +00:00