Commit Graph

1709 Commits

Author SHA1 Message Date
wiz
c8684d9bac Standardize spelling. Remove superfluous Pp. Fix typo. 2007-12-02 22:09:34 +00:00
wiz
875af49afd New sentence, new line. Spelling. Prepare for HTML output. 2007-12-02 20:03:11 +00:00
wiz
14cf4b821f Fix typo. 2007-12-02 19:44:02 +00:00
wiz
9bf8a73ed2 file system -> filesystem; fix typos. 2007-12-02 19:35:39 +00:00
hannken
d556dc98b0 Fscow_run(): add a flag "bool data_valid" to note still valid data.
Buffers run through copy-on-write are marked B_COWDONE.  This condition
is valid until the buffer has run through bwrite() and gets cleared from
biodone().

Welcome to 4.99.39.

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
2007-12-02 13:56:15 +00:00
wiz
246a193933 Drop trailing whitespace. 2007-12-01 20:00:16 +00:00
wiz
666ba94997 Fix typos. 2007-12-01 19:59:05 +00:00
wiz
6a0134c241 Spelling, HTML output fix. 2007-12-01 19:46:56 +00:00
plunky
736a9db087 Clean up the way that bluetooth drivers attach to the bluetooth stack,
to remove the frobbing that drivers must do in the hci_unit structure.

- driver provides a static const interface descriptor
- hci_unit is allocated by hci_attach() rather than part of softc
- statistics are compiled by driver and provided on request
- driver provides output methods and is responsible for output queue
- stack provides input methods and is responsible for input queue
- mutex is used to arbitrate device queue access
2007-11-28 20:16:11 +00:00
elad
3862950e53 Add a NOTES section to the manual, indicating that kauth(9) is still under
active development and its ABI (and possibly API) may change between
NetBSD versions.

This is critical to, for example, LKMs, where there might be a case of them
being built using one version of the ABI and used on system with another.

The main concern for "ABI" here is the set of KAUTH_* actions and requests
that is (for now) an enum. This note is likely to be removed as kauth(9)
is stablized -- hopefully before NetBSD 5.0.

okay christos@
2007-11-27 10:50:09 +00:00
pooka
8a64ceed6a "struct lwp *l" is a goner from VFS/VOP interfaces. 2007-11-26 19:11:11 +00:00
elad
41b84354cb Deprecate KAUTH_REQ_SYSTEM_TIME_BACKWARDS, as it was merged into
KAUTH_REQ_SYSTEM_TIME_SYSTEM.
2007-11-25 09:39:26 +00:00
elad
abb7851f4d Refactor time modification checks and place them in the secmodel code.
okay christos@
2007-11-25 00:35:26 +00:00
elad
ea96710831 Fix typo. 2007-11-23 20:09:30 +00:00
elad
18558073a1 Kill another instance of KAUTH_GENERIC_ISSUSER. 2007-11-23 16:03:47 +00:00
xtraeme
efb076273b kthread_create1 is no more, ok thx. 2007-11-21 23:11:06 +00:00
elad
6887492c26 Make securelevel a "secmodel" of its own.
While it's true that it's part of the traditional 4.4BSD security model,
there may come a time where a different "primary" security model used for
fine-grained privileges (ie., splitting root's responsibilities to various
privileges that can be assigned) may want to still have a securelevel
setting.

Idea from Daniel Carosone:

  http://mail-index.netbsd.org/tech-security/2006/08/25/0001.html

The location of the removed files, for reference, was:

  src/secmodel/bsd44/secmodel_bsd44_securelevel.c
  src/secmodel/bsd44/securelevel.h
2007-11-21 22:49:05 +00:00
pooka
b21e075586 Short description of putter(9) 2007-11-21 18:40:58 +00:00
dsieger
1f9f59ed34 Remove extraneous .Ed 2007-11-21 14:21:31 +00:00
xtraeme
53cbf2f68b Improve description for ENVSYS_FMONNOTSUPP. 2007-11-20 10:08:47 +00:00
xtraeme
21ba58354e Indentation fix for the units list. 2007-11-20 09:16:36 +00:00
njoly
e96c994011 Small indentation fix for ENVSYS_BATTERY_CAPACITY_* description list. 2007-11-19 12:13:51 +00:00
xtraeme
8ac95dc8e2 Improve description of sme_refresh and state. 2007-11-17 23:10:00 +00:00
xtraeme
31962fc6e5 Extend the envsys2 API (one more time, sorry) as defined in:
http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.
2007-11-16 08:00:11 +00:00
jmcneill
7eb0882f87 Wups, bump date. 2007-11-10 20:55:33 +00:00
jmcneill
70e507c576 It's mixer_ctrl_t, not mixer_ctl_t. 2007-11-10 20:54:56 +00:00
xtraeme
b3893f8d6a Sync with latest round of changes and improve vastly sysmon_envsys(9). 2007-11-03 23:05:56 +00:00
rjs
08f1734743 Fix typo. s/conat/const 2007-10-28 21:33:23 +00:00
joerg
545f4d8d88 Sync callout(9) man page with bool changes. 2007-10-16 09:17:44 +00:00
pooka
430c2395ef - uvn_attach.9
+ ubc_uiomove.9
2007-10-15 14:00:49 +00:00
pooka
72133aa8cb document ubc_uiomove() 2007-10-15 13:39:50 +00:00
plunky
11054f05ab make it clear that no deactivate call will be made if the activate returns
an error.
2007-10-14 10:10:04 +00:00
xtraeme
7ade6d03ad Fix the problems described in:
http://mail-index.netbsd.org/current-users/2007/07/16/0012.html

- Introduce sme_class into the sysmon_envsys struct to specify a
  class; currently there are two classes: SME_CLASS_ACADAPTER and
  SME_CLASS_BATTERY.

- Add a new envsys event: PENVSYS_EVENT_LOW_POWER that is reached when
  all SME_CLASS_BATTERY devices are in CRITICAL/LOW state and there's not
  any SME_CLASS_ACADAPTER connected.

- Add the 'low-power' event into the sensor_battery script that will
  shutdown the system gracefully via 'shutdown -p'. If powerd(8) is
  not running, cpu_reboot(9) with RB_POWERDOWN is used.

- Make acpiacad(4) a SME_CLASS_ACADAPTER device and acpibat(4) a
  SME_CLASS_BATTERY device.

Update the documentation accordingly to these changes.
2007-10-10 23:25:39 +00:00
pooka
934299af2e * uvn_attach() is a goner
* document UBC_FAULTBUSY
2007-10-10 11:05:15 +00:00
hannken
3c258e6a15 Bump date. 2007-10-08 10:32:38 +00:00
hannken
3856acafe2 Update the file system copy-on-write handler.
- Instead of hooking the handler on the specdev of a mounted file system
  hook directly on the `struct mount'.

- Rename from `vn_cow_*' to `fscow_*' and move to `kern/vfs_trans.c'.  Use
  `mount_*specific' instead of clobbering `struct mount' or `struct specinfo'.

- Replace the hand-made reader/writer lock with a krwlock.

- Keep `vn_cow_*' functions and mark as obsolete.

- Welcome to NetBSD 4.99.32 - `struct specinfo' changed size.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
2007-10-07 13:38:53 +00:00
alc
366f52110b Sync with code in src/sys/sys/device.h:
- remove the `submatch' argument of config_found_ia()
 - precise that config_found_ia() callis config_found_sm_loc() with both
`locs' and `submatch' set to NULL
2007-10-04 17:28:48 +00:00
alc
36bb949541 fix unbalanced double quote 2007-10-04 17:16:01 +00:00
wiz
804d4ddaaf Document aprint*_dev and aprint*_ifnet. Requested by joerg@ 2007-09-24 20:44:23 +00:00
yamt
97427fb0e4 use a correct type for UIO_*. 2007-09-23 16:00:08 +00:00
dyoung
594712b2ce Update documentation to match source. 2007-09-19 05:26:21 +00:00
xtraeme
877776516d Modify a block that wasn't valid anymore. 2007-09-14 09:20:49 +00:00
xtraeme
b5822e79d4 Update to match current code. 2007-09-04 16:55:02 +00:00
xtraeme
e5707563c8 Document the new sensor units type: ENVSYS_GSTRING and its member
in the envsys_data_t struct.
2007-09-02 20:27:03 +00:00
xtraeme
8972430efc - Remove reference to unexistent sysmon_power(9). (I will work on this
manpage, but no ETA yet).
- Xref envstat(8).
2007-08-28 08:36:18 +00:00
xtraeme
3ed930f279 Valid arguments for rw_enter() and rw_tryenter() are RW_READER/RW_WRITER
not RW_READ/RW_WRITE.

Bump date.
2007-08-27 15:43:13 +00:00
pooka
1a9e88bd0f fix/clarify VOP_CLOSE 2007-08-24 09:57:03 +00:00
pooka
a307c8e659 boolean_t -> bool sweep 2007-08-11 19:16:21 +00:00
pooka
f208ab1cd8 boolean_t -> bool 2007-08-08 21:36:43 +00:00
pooka
572974402c krwlock_op_t -> const krw_t 2007-08-08 09:34:40 +00:00
wiz
2d861dae37 Use more markup. Try to improve english. Sort SEE ALSO. 2007-08-07 20:50:39 +00:00
xtraeme
ea44cd3ae2 <wizd> Bump date for previous. 2007-08-07 15:00:09 +00:00
rmind
2e1a7ade3c Sync the manual pages of workqueue(9) interface with the code.
/etc/rc.d/wizd start
2007-08-05 17:57:37 +00:00
pooka
c7d9ec16a7 VFS_MOUNT():
+ nameidata is a goner
  + document dlen (hi dsl!)
2007-07-31 21:39:56 +00:00
alc
9abba19570 kills a few `caddr_t' occurences still present in manpage 2007-07-30 22:48:46 +00:00
rumble
daacba5e07 Be more specific in the description of VOP_READDIR:
- uio->uio_offset must be set to the offset of the next directory entry.
 - each cookie entry points to the next directory entry's offset, not the
   current entry's offset.
 - cookies must be callee allocated with malloc type M_TEMP.
2007-07-30 03:25:50 +00:00
pooka
833194271b update CODE REFERENCES to match new module 2007-07-29 09:40:54 +00:00
pooka
1f1ebcb118 VOP_MMAP fflags -> prot 2007-07-27 08:31:30 +00:00
pooka
c1d612fca8 <machine/stdarg.h> is needed for va_lists 2007-07-26 10:00:21 +00:00
pooka
0abd6d25d4 missed a few due to the blinding effects of underlining 2007-07-26 08:43:52 +00:00
pooka
9cb446adae include variable names in synopsis 2007-07-26 08:42:17 +00:00
pooka
924961206f pool_init: wchan is const 2007-07-25 09:14:18 +00:00
dsieger
206d59d40f Fix a glitch in previous commit:
s/mi_switch 9/mi_switch.9/

Reported by Paul Goyette.
2007-07-21 15:35:46 +00:00
dsieger
93f4326679 Remove obsolete content about cpu_switchto() from ctxsw(9) and rename
it to mi_switch(9).

Suggested by yamt@
2007-07-21 08:51:31 +00:00
dsieger
2fb0acefe7 Sync with reality:
- cpu_switch() is gone.
- Adjust function prototypes and return values
- Add references to csf(9) and sched_4bsd(9).
- Bump date.
2007-07-18 12:43:12 +00:00
yamt
916da2eb8f document kpause. largely copied from condvar.9. 2007-07-18 12:18:06 +00:00
dsieger
55e48935f0 Remove references to SCHED_LOCK(9), which is gone. Slightly sync with
reality.

XXX: This needs more updates after idle-lwp changes.
2007-07-17 20:56:22 +00:00
xtraeme
92f4397e50 Explain a bit more about edata->desc being unique in a device. 2007-07-17 17:10:58 +00:00
xtraeme
811e1e2e60 Fix a typo: it's ENVSYS_FPERCENT not ENVSYS_FPERCENTAGE.
Bump date.
2007-07-16 17:37:10 +00:00
wiz
680eacb522 Fix Fn abuse. New sentence, new line. End sentence with dot. 2007-07-15 21:33:12 +00:00
wiz
c01b8826d1 Fix Fn abuses. Sort SEE ALSO. End sentences with dots.
Use .Nm more.
2007-07-15 21:31:15 +00:00
jnemeth
77e1eaa78e setrunqueue is no more 2007-07-15 02:57:23 +00:00
dsieger
82d31a4a20 Remove obsolete SCHED_LOCK(9), which is gone.
ok by <ad>
2007-07-14 22:09:57 +00:00
dsieger
eeeb9eddd5 Add references to sched_4bsd(9). 2007-07-14 22:02:33 +00:00
dsieger
5c52ed78e9 Move scheduler(9) to sched_4bsd(9) and sync its contents with reality. Also
add a reference to McKusick et. al., which still contains the best in-depth
description of the 4.4BSD scheduler.
2007-07-14 21:54:30 +00:00
dsieger
10dc2af304 Remove obsolete setrunqueue(9) manpage.
ok by <ad>.
2007-07-14 20:39:33 +00:00
dsieger
4f02ad43b0 Add initial manpage for the "new" scheduler API.
Note: More content will follow, to this manpage as well as the NetBSD
Internals book.

Ok by <ad>
2007-07-14 20:23:12 +00:00
xtraeme
8f6e6386cb Bump date. 2007-07-14 11:47:15 +00:00
ad
8751253925 Update mlinks for callout/kthread changes. 2007-07-14 11:39:01 +00:00
ad
8a398d3980 Sync with reality. 2007-07-14 11:34:54 +00:00
ad
58af9c20d0 Sync with reality. 2007-07-14 11:22:33 +00:00
ad
53d643b5f7 - kcont was removed.
- Replace some references to tsleep.
2007-07-14 10:52:47 +00:00
dsl
ffa428bf85 Document the 'flags' parameter to kauth_cred_set/getgroups.
Fix some obvious typos in the return types and return values of these
functions.
2007-07-11 19:12:09 +00:00
xtraeme
c51a1c15bf Add the CODE REFERENCES section. 2007-07-04 17:35:20 +00:00
xtraeme
e719333534 Document the sysctl node to change the refresh value of the callout
function that monitors the sensors.
2007-07-03 22:47:20 +00:00
yamt
2025659d20 update and document yield(). 2007-07-03 12:14:24 +00:00
xtraeme
08d5afa292 Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
2007-07-01 07:55:51 +00:00
pooka
b013a2d4f9 Include struct componentname declaration in struct namei - it's
usually the more interesting of the two anyway.
2007-06-30 18:55:19 +00:00
pooka
21a7d11f2b Fix description on what is returned locked and when.
noticed by Rumble
2007-06-28 08:02:41 +00:00
rumble
d831b3217f Fix typo. 2007-06-28 02:54:23 +00:00
rumble
4f748f12bb Note that if vp is NULL in cache_enter, a negative entry is created. 2007-06-25 16:33:50 +00:00
rumble
436b31f333 Add va_birthtime. 2007-06-24 22:49:44 +00:00
rumble
b9ff3c810f TRUE -> true, FALSE -> false. 2007-06-24 19:26:58 +00:00
pooka
5d2746d022 There is no p - it's the calling lwp these days. 2007-06-20 16:35:52 +00:00
pooka
0031e99f45 ident is now of type wchan_t 2007-06-17 18:50:07 +00:00
pooka
d1e849f0c3 vprint takes a const char *label 2007-06-15 11:42:11 +00:00
yamt
c2217bea1c fix the description of return values. pointed by Martin Husemann.
reviewed by toshii@
2007-05-21 02:30:47 +00:00
christos
eeefe01872 this experimental interface is not in use anymore. 2007-05-19 22:14:18 +00:00
christos
38efedca16 catch up with argument shuffle. 2007-05-19 22:13:57 +00:00
wiz
760ca22d96 Bump date for previous. 2007-05-19 14:30:55 +00:00
wiz
e2598a32e0 Fix bug introduced by imperfect wizd emulation. 2007-05-19 14:28:42 +00:00
yamt
297c65017f obsolete mi_switch.9 and cpu_switch.9 MLINKS. pointed by Blair Sadewitz. 2007-05-18 05:09:08 +00:00
pooka
7ed1d7403d vn_poll does not return success/error, it return what VOP_POLL
returns, i.e. mask of available events
2007-05-17 17:47:10 +00:00
yamt
19e935945f add cpu_idle.9. 2007-05-17 15:14:27 +00:00
yamt
6af9c3d49d update after yamt-idlelwp merge.
- remove cpu_exit.9.
- remove ctxsw.9 from makefile because it's too stale.
  XXX maybe it will revive as mi_switch.9 later.
- add cpu_switchto.9 to makefile.
2007-05-17 15:12:56 +00:00
yamt
e513490beb update after yamt-idlelwp merge. 2007-05-17 15:06:25 +00:00
hannken
64b7e5637e Fstrans_start() always returns zero, so change its type to void. 2007-05-17 07:26:21 +00:00
elad
6700cfccd6 Some Veriexec stuff that's been rotting in my tree for months.
Bug fixes:
  - Fix crash reported by Scott Ellis on current-users@.

  - Fix race conditions in enforcing the Veriexec rename and remove
    policies. These are NOT security issues.

  - Fix memory leak in rename handling when overwriting a monitored
    file.

  - Fix table deletion logic.

  - Don't prevent query requests if not in learning mode.


KPI updates:
  - fileassoc_table_run() now takes a cookie to pass to the callback.

  - veriexec_table_add() was removed, it is now done internally. As a
    result, there's no longer a need for VERIEXEC_TABLESIZE.

  - veriexec_report() was removed, it is now internal.

  - Perform sanity checks on the entry type, and enforce default type
    in veriexec_file_add() rather than in veriexecctl.

  - Add veriexec_flush(), used to delete all Veriexec tables, and
    veriexec_dump(), used to fill an array with all Veriexec entries.


New features:
  - Add a '-k' flag to veriexecctl, to keep the filenames in the kernel
    database. This allows Veriexec to produce slightly more accurate
    logs under certain circumstances. In the future, this can be either
    replaced by vnode->pathname translation, or combined with it.

  - Add a VERIEXEC_DUMP ioctl, to dump the entire Veriexec database.
    This can be used to recover a database if the file was lost.
    Example usage:

        # veriexecctl dump > /etc/signatures

    Note that only entries with the filename kept (that is, were loaded
    with the '-k' flag) will be dumped.

    Idea from Brett Lymn.

  - Add a VERIEXEC_FLUSH ioctl, to delete all Veriexec entries. Sample
    usage:

        # veriexecctl flush

  - Add a 'veriexec_flags' rc(8) variable, and make its default have
    the '-k' flag. On systems using the default signatures file
    (generaetd from running 'veriexecgen' with no arguments), this will
    use additional 32kb of kernel memory on average.

  - Add a '-e' flag to veriexecctl, to evaluate the fingerprint during
    load. This is done automatically for files marked as 'untrusted'.


Misc. stuff:
  - The code for veriexecctl was massively simplified as a result of
    eliminating the need for VERIEXEC_TABLESIZE, and now uses a single
    pass of the signatures file, making the loading somewhat faster.

  - Lots of minor fixes found using the (still under development)
    Veriexec regression testsuite.

  - Some of the messages Veriexec prints were improved.

  - Various documentation fixes.


All relevant man-pages were updated to reflect the above changes.

Binary compatibility with existing veriexecctl binaries is maintained.
2007-05-15 19:47:43 +00:00
xtraeme
8d72c34523 Don't mention ltsleep(9), it's obsolete. workqueue(9) uses condvar(9). 2007-05-13 20:24:57 +00:00
tnn
da779f39a1 fix typos 2007-05-13 19:02:17 +00:00
xtraeme
50d836969e In DESCRIPTION move the name argument to the proper place, so
that it matches the order specificied in the prototype.
2007-05-13 18:43:50 +00:00
itohy
bc7976e5a8 Add missing " 2007-05-10 09:08:38 +00:00
pooka
71ab04cbde make description of VOP_MMAP compatible with reality 2007-05-07 21:41:49 +00:00
pavel
30b691bf74 Sync the uvm_fault interface with reality after the removal of the
"fault type" third argument in rev. 1.110 of sys/uvm/uvm_fault.c

Hi Drochner!
2007-05-06 12:38:09 +00:00
yamt
58f7ebf59b sync with the code. 2007-04-21 17:52:09 +00:00
plunky
f5db72e7b7 Add 'service level' security for L2CAP and RFCOMM connections, following
the Linux (BlueZ) API.

    - L2CAP or RFCOMM connections can require the baseband radio link
    mode be any of:
	authenticated (devices are paired)
	encrypted (implies authentication)
	secured (encryption, plus generate new link key)

    - for sockets, the mode is set using setsockopt(2) and the socket
    connection will be aborted if the mode change fails.

    - mode settings will be applied during connection establishment, and
    for safety, we enter a wait state and will only proceed when the mode
    settings are successfuly set.

    - It is possible to change the mode on already open connections, but
    not possible to guarantee that data already queued (from either end)
    will not be delivered. (this is a feature, not a bug)

    - bthidev(4) and rfcomm_sppd(1) support "auth", "encrypt" and
    "secure" options

    - btdevctl(8) by default enables "auth" for HIDs, and "encrypt" for
    keyboards (which are required to support it)
2007-04-21 06:15:22 +00:00
yamt
73e9fbd3df update. (cpu_did_resched) 2007-04-20 13:45:43 +00:00
yamt
483db2967f update. 2007-04-18 12:19:45 +00:00
pooka
5d3221caa2 handle vptofh and fhtovp:
* file handles are not only for nfs
* these functions are not allowed to be null
* update description of vptofh to contain the size parameter
(*bump date)
2007-04-16 14:47:19 +00:00
plunky
2ec4c16ef8 although this is an intentionally undocumented interface (see PR/35278),
fix up the non existent documentation to reflect the reality.
2007-04-15 10:36:51 +00:00
plunky
a162e8343b Tidy this up:
fix mdoc warnings
	add missing .El
	add missing Fn

    remove extraneous text
    add function names to SYNOPSIS
2007-04-13 18:19:36 +00:00
plunky
68df426450 remove 'unknown keyword' error (use -tag or -hyphen, not both) 2007-04-13 00:36:21 +00:00
plunky
7b01b26c16 remove extraneous .El 2007-04-13 00:35:09 +00:00
ad
e8b43103b0 Try to be more concise, and add a bit more text. 2007-04-09 13:37:57 +00:00
ad
44815c2f0d Tidy up a bit. 2007-04-08 21:41:21 +00:00
ad
4d04f2f136 - Note that cv_has_waiters() can only be used to assert that there are
waiters sleeping non-interruptably (i.e., in cv_wait()). Prompted by
  a discussion with pooka@.
- Minor cosmetic changes.
2007-03-29 17:40:36 +00:00
pooka
3f2dd92fb2 document MALLOC_JUSTDEFINE and MALLOC_JUSTDEFINE_LIMIT 2007-03-29 16:29:37 +00:00
pooka
4d4d2d4517 fix definition of runp in VOP_BMAP 2007-03-29 12:06:58 +00:00
dyoung
9ff230d3d6 Define four new radiotap fields per discussions with John Bicket, Sam
Leffler, and others:

        IEEE80211_RADIOTAP_RX_FLAGS = 14,
        IEEE80211_RADIOTAP_TX_FLAGS = 15,
        IEEE80211_RADIOTAP_RTS_RETRIES = 16,
        IEEE80211_RADIOTAP_DATA_RETRIES = 17,

I describe the fields in the manual page and in comments in the
header file (cross-referenced by the manual page).
2007-03-26 04:32:14 +00:00
yamt
44203998c5 sync with reality. 2007-03-20 11:11:51 +00:00
ad
30a3230b81 Document the ipl argument to pool_init. 2007-03-15 16:02:40 +00:00
matt
32188e1e88 Fix typo 2007-03-10 00:04:11 +00:00
rmind
8c218ddd5e We no longer have uio_segflg and uio_procp members in the the struct uio.
Instead of these, we use uio_vmspace. OK: ad@
2007-03-07 22:40:24 +00:00
dogcow
c1a14b53bd running in emulated wizd mode, convert caddr_t to void *. 2007-03-07 00:41:16 +00:00
tsutsui
d8e09be7a9 caddr_t -> void * 2007-03-04 15:57:39 +00:00
wiz
bb65f0472f Bump date for previous. 2007-03-02 20:31:58 +00:00
wiz
f368ccb5df Bump date for previous. New sentence, new line. 2007-03-02 20:30:44 +00:00
yamt
54c3330421 sync with the code. (pri_t) 2007-03-01 14:24:25 +00:00
yamt
b2b964ea2a sys/proc.h -> sys/cpu.h 2007-02-23 15:59:17 +00:00
dyoung
bc99546f43 Reverse sense of preference numbers: prefer source addresses with
higher preference numbers.  Thanks to Mihai Chelaru for pointing
out my mistake.
2007-02-22 08:08:40 +00:00
mrg
46deb749ba document bus_dmatag_subregion(9) and bus_dmatag_destroy(9). 2007-02-21 21:13:01 +00:00
wiz
1b2b703d2f time(9) was renamed to time_second(9), fix xrefs. 2007-02-20 08:26:35 +00:00
wiz
b197e6e24d Fix some xrefs. Fix Dd argument. Remove superfluous Pps. 2007-02-20 08:22:05 +00:00
wiz
092c56a032 Sort SEE ALSO. 2007-02-20 08:18:03 +00:00
rmind
e3179c1bea Introduce table of contents for core references. Please note, that in
future one should follow such hierarchy:
  1. Table of contents (only intro.9)
    2. Abstract description of subsystems (e.g. memoryallocators.9)
      3. Concrete description of subsystem (e.g. vmem.9)

Thanks tsutsui@ for better structurization and wiz@ for quick review.
OK by tech-kern@ positivism.
2007-02-18 21:45:30 +00:00
yamt
1adc21b497 cpu_switchto doesn't use curlwp. 2007-02-17 17:48:17 +00:00
yamt
5ee77a9232 - move an implementation example to an EXAMPLES section.
- adapt to multiprocessor.
2007-02-17 17:35:52 +00:00
yamt
443a5d8276 need_resched -> cpu_need_resched 2007-02-17 17:29:24 +00:00
yamt
e2f125eb9e process -> LWP. 2007-02-17 17:26:31 +00:00
yamt
69fa8e9367 correct a header.
XXX maybe it's better to introduce sys/cpu.h.
2007-02-17 17:25:34 +00:00
yamt
d8e79b86c0 locking note. 2007-02-17 17:24:01 +00:00
yamt
38384421f9 need_resched -> cpu_need_resched. 2007-02-17 17:18:31 +00:00
yamt
fbee1fbbf7 some more notes. 2007-02-17 17:14:21 +00:00
yamt
29f0b10c51 add manpages for yamt-idlelwp branch. not enabled in the makefile yet. 2007-02-17 16:23:08 +00:00
yamt
277af7c2c3 remove cpu_idle.9. it has not been available on trunk. 2007-02-17 14:32:23 +00:00
wiz
54c03147a4 Whitespace nit. 2007-02-17 08:50:04 +00:00
wiz
06dd0b9f76 Sort SEE ALSO (by section number first, then by name). 2007-02-17 08:49:39 +00:00
wiz
15bc0b94bc Fix Dd argument. 2007-02-17 08:44:08 +00:00
wiz
4d46e7cc67 Use Em for notes. Whitespace nits. 2007-02-17 08:43:19 +00:00
wiz
30fd28f965 Use Em for notes. Whitespace nits. Typo fix. 2007-02-17 08:43:10 +00:00
rmind
ede64e5874 - Add link to memoryallocators(9) in kmem_*(9), vmem(9), uvm(9), malloc(9),
pool(9) and pool_cache(9) manuals.
- Sort uvm(9) "SEE ALSO" section.
2007-02-16 23:13:05 +00:00
dillo
ff885dda73 Fix typo, add comma. 2007-02-16 22:26:36 +00:00
hannken
198beb0314 Make fstrans(9) the default helper for file system suspension.
Replaces the now obsolete vn_start_write()/vn_finished_write().
2007-02-16 17:23:53 +00:00
tron
4a83339899 Remove entries for rw_owned(9) again. The set lists were incorrect,
not this "Makefile".
2007-02-15 17:04:04 +00:00
tron
3e0f4f02f6 Create symbolic links for rw_owned(9). 2007-02-15 16:44:41 +00:00
skrll
8694ada1fe Sort some entries. 2007-02-15 07:30:07 +00:00
ad
d399d56922 Fix up MLINKS for previous. From nick@. 2007-02-11 18:49:18 +00:00
ad
6fa495aa59 Note that device drivers should not (in general) use these interfaces. 2007-02-11 16:36:06 +00:00
ad
6f86141195 Add mb/rwlock/condvar/mutex section 9 manual pages. 2007-02-11 16:16:09 +00:00
ad
b52b3eb8ff Mark these interfaces obsolete. 2007-02-11 16:05:08 +00:00
dillo
d096538b4a Fix typo. 2007-02-08 22:27:20 +00:00
dillo
8f94021d97 Mark up function arguments with .Fa, not .Fn; also, fix typo in
function argument.
2007-02-08 08:04:00 +00:00
elad
119d4b5acd PR/35253: YAMAMOTO Takashi: fileassoc hash size problem
fileassoc_table_add() was removed from the KPI and made internal. From now
fileassoc(9) will manage the optimal table size internally.

Input from and okay yamt@.
2007-02-06 01:09:48 +00:00
ad
20fd6754cf Sync with latest changes. 2007-02-05 15:04:21 +00:00
ad
26d6ccf325 Document cv_has_waiters(). 2007-02-03 16:49:11 +00:00
ad
00b8f6d201 - Require that cv_signal/cv_broadcast be called with the interlock held.
- Provide 'async' versions that don't need the interlock.
2007-02-03 16:39:53 +00:00
wiz
711856f6bb Fix Dd argument. 2007-02-02 07:37:06 +00:00
wiz
a88d4440e3 Sort SEE ALSO. Fix typo. 2007-02-02 07:36:09 +00:00
wiz
401fd96995 Sort options. Fix a few typos. 2007-02-02 07:35:28 +00:00
ad
c1a5096807 Add manpage for memory barrier ops. Not enabled in the Makefile yet. 2007-02-02 03:40:07 +00:00
elad
409147ef11 Forgot to add notes about secmodel_register() and secmodel_register() in
previous commit -- added now.
2007-01-31 11:18:23 +00:00
elad
ac22ef0996 Update instructions on writing a new security model to include some notes
about LKMs and private data in credentials.
2007-01-31 11:16:46 +00:00
elad
9d00fe4640 Fix mdoc (Lt -> Gt). 2007-01-31 10:39:40 +00:00
elad
c439bcfe43 Add a new scope, the credentials scope, which is internal to the kauth(9)
implementation and meant to be used by security models to hook credential
related operations (init, fork, copy, free -- hooked in kauth_cred_alloc(),
kauth_proc_fork(), kauth_cred_clone(), and kauth_cred_free(), respectively)
and document it.

Add specificdata to credentials, and routines to register/deregister new
"keys", as well as set/get routines. This allows security models to add
their own private data to a kauth_cred_t.

The above two, combined, allow security models to control inheritance of
their own private data in credentials which is a requirement for doing
stuff like, I dunno, capabilities?
2007-01-31 10:08:23 +00:00
hannken
4d607243ba Change fstrans enum types to upper case.
No functional change.

From Antti Kantee <pooka@netbsd.org>
2007-01-29 15:42:50 +00:00
elad
c2e4f788f9 Talk about special cases for kauth_authorize_action(). 2007-01-28 00:21:04 +00:00
elad
94d493dbe2 Remove extra '.El', left in previous commit. 2007-01-27 23:14:02 +00:00
wiz
c0ed8c1e97 Make HTML-safe. 2007-01-23 20:31:33 +00:00
wiz
0f3c9bb729 Sort ERRORS. 2007-01-23 20:31:20 +00:00
hannken
facd1f65cb Add and update documentation for fstrans(9) file system suspension helper.
wiz?
2007-01-21 15:42:36 +00:00
elad
a78693aa19 Kill KAUTH_PROCESS_RESOURCE and just replace it with two actions for
nice and rlimit.
2007-01-20 16:47:38 +00:00
elad
c3ca2b03a6 Add man-page for pathname(9) routines, but don't link to build yet. 2007-01-16 13:21:14 +00:00
elad
6df6f0ea65 Introduce kauth_proc_fork() to control credential inheritance. 2007-01-15 17:45:32 +00:00
elad
8ed50e44ae veriexec_file_delete() and veriexec_table_delete() now take 'struct lwp *'
too.
2007-01-11 16:24:47 +00:00
elad
d2e4f7167b Remove advertising clause from all of my stuff. 2007-01-09 12:49:36 +00:00
wiz
751fa51e41 Sort SEE ALSO. 2007-01-08 07:24:35 +00:00
elad
190f747fee Add a memoryallocators(9) man-page to give a short summary of memory
allocators available in the kernel.

Tons of input from YAMAMOTO Takashi, thanks!
2007-01-07 15:37:51 +00:00
elad
a13160f423 Make mount(2) and unmount(2) use kauth(9) for security policy.
Okay yamt@.
2007-01-02 10:47:28 +00:00
elad
c6e8423fec Make kauth_deregister_scope() and kauth_unlisten_scope() free the
passed kauth_scope_t and kauth_listener_t objects, respectively.

Okay yamt@.
2007-01-01 23:33:03 +00:00
elad
867767da66 Add veriexe_openchk(). 2006-12-30 15:32:19 +00:00
elad
504c71d9fe Make machdep scope architecture-agnostic by removing all arch-specific
requests and centralizing them all. The result is that some of these
are not used on some architectures, but the documentation was updated
to reflect that.
2006-12-26 10:43:43 +00:00
elad
ff39342b33 veriexec_lookup() should not return an internal data-structure, but rather
just a boolean value.
2006-12-26 07:50:40 +00:00
wiz
a1b013e655 Drop trailing dot in Nd. 2006-12-23 10:01:32 +00:00
wiz
0cbf97b519 Use HTML escapes. 2006-12-23 09:45:34 +00:00
wiz
103c72a1ca Bump date for previous. 2006-12-23 09:36:56 +00:00
wiz
6dfb14d789 New sentence, new line. Fix typo. 2006-12-23 09:21:10 +00:00
wiz
f92f3068da Use HTML escapes. 2006-12-23 09:05:20 +00:00
wiz
987a2558a6 Use Dv for defined values. 2006-12-23 09:02:45 +00:00
yamt
e9e681eded remove the fileassoc "tabledata" functionality. 2006-12-23 08:36:14 +00:00
wiz
66bd97f47f Use Dv for defined values. 2006-12-23 07:43:41 +00:00
yamt
dcedbd0734 remove a BUGS section because it's solved by yamt-splraiseipl. 2006-12-23 07:30:26 +00:00
wiz
7713de669b Fix sections in Xrefs. 2006-12-23 07:17:50 +00:00
wiz
43a0a70785 Use more markup. Use .Rs/.Re for book citation. 2006-12-23 06:51:41 +00:00
wiz
d15f199eb9 Use more markup. Use .Rs/.Re for book citation. Add missing comma. 2006-12-23 06:39:35 +00:00
wiz
f5ec841753 Fix typo. 2006-12-23 06:36:33 +00:00
wiz
fa9034328d Drop trailing whitespace. 2006-12-23 06:36:19 +00:00
elad
3d11477c94 Add requests indicating access to unmanaged memory for arm, pc532, powerpc,
sh3, sh5, and vax, and use them instead of KAUTH_GENERIC_ISSUSER.

Update documentation and example secmodel code.
2006-12-22 11:13:21 +00:00
yamt
71683748ca fix a typo. 2006-12-21 16:09:22 +00:00
yamt
5d51c3ca27 document splraiseipl and makeiplcookie. 2006-12-21 16:01:13 +00:00
elad
2fa3937ffc Markup fix - forgot 'Fn'. 2006-12-20 12:29:09 +00:00
elad
f1a69ab3ea Some changes to get rid of another KAUTH_GENERIC_ISSUSER usage:
- Make procfs_control() in procfs_ctl.c static,
  - Add an argument to the above, 'pfs', for the pfsnode,
  - Add another request type to KAUTH_PROCESS_CANPROCFS named
    KAUTH_REQ_PROCESS_CANPROCFS_CTL (and update documentation),
  - Use the above combination in a call to kauth_authorize_process().
2006-12-19 09:58:34 +00:00
simonb
58e3217148 Explicitly mention that pmap_extract() should deal with KSEG-style
kernel addresses.
2006-12-18 00:41:21 +00:00
elad
238ad51d2d - moves 'nice' access semantics to secmodel code,
- makes sysctl_proc_find() just lookup the process,
- use KAUTH_PROCESS_CANSEE requests to determine if the caller is
  allowed to view the target process' corename, stop flags, and
  rlimits,
- use explicit kauth(9) calls with KAUTH_PROCESS_CORENAME,
  KAUTH_REQ_PROCESS_RESOURCE_NICE, KAUTH_REQ_PROCESS_RESOURCE_RLIMIT,
  and KAUTH_PROCESS_STOPFLAG when modifying the aforementioned.
- sync man-page and example skeleton secmodel with reality.

okay yamt@

this is a pullup candidate.
2006-12-14 11:45:08 +00:00
yamt
687483b208 update an example. 2006-12-11 15:33:01 +00:00
yamt
995d487942 FILEASSOC_NHOOKS has gone. 2006-12-11 15:30:23 +00:00
yamt
9858d82855 it's fileassoc, not verifiedexec. 2006-12-11 15:27:46 +00:00
yamt
c534201d82 sync with the implementation. 2006-12-11 15:27:09 +00:00
pooka
9b0cc2c27b fix description to match the code 2006-12-10 23:03:03 +00:00
chs
c398ae9734 a smorgasbord of improvements to vnode locking and path lookup:
- LOCKPARENT is no longer relevant for lookup(), relookup() or VOP_LOOKUP().
   these now always return the parent vnode locked.  namei() works as before.
   lookup() and various other paths no longer acquire vnode locks in the
   wrong order via vrele().  fixes PR 32535.
   as a nice side effect, path lookup is also up to 25% faster.
 - the above allows us to get rid of PDIRUNLOCK.
 - also get rid of WANTPARENT (just use LOCKPARENT and unlock it).
 - remove an assumption in layer_node_find() that all file systems implement
   a recursive VOP_LOCK() (unionfs doesn't).
 - require that all file systems supply vfs_vptofh and vfs_fhtovp routines.
   fill in eopnotsupp() for file systems that don't support being exported
   and remove the checks for NULL.  (layerfs calls these without checking.)
 - in union_lookup1(), don't change refcounts in the ISDOTDOT case, just
   adjust which vnode is locked.  fixes PR 33374.
 - apply fixes for ufs_rename() from ufs_vnops.c rev. 1.61 to ext2fs_rename().
2006-12-09 16:11:50 +00:00
elad
b8e4702fb2 Back out uvm_is_swap_device(). 2006-12-07 14:06:51 +00:00
hubertf
e135fa8ee4 Update to describe current API (only), and not duplicate that can be
found elsewhere. (And which will appear in the NetBSD Internals Guide
soonish).

Submitted by Daniel Sieger <dsieger@TechFak.Uni-Bielefeld.DE>,
OK'd by martin@ and  yamt@
2006-12-04 15:36:23 +00:00
wiz
1f1eabcdb7 Use more markup. Use HTML escapes. Use .Rs/.Re for book citation. 2006-12-04 13:16:59 +00:00
tsutsui
32402b1bfe Remove an invalid (and nonexistent) .Xr usage. 2006-12-03 05:28:33 +00:00
elad
432c309931 Change kauth(9) KPI for kauth_authorize_device_passthru() to add another
argument, u_long, serving as a bit-mask of generic requests for the
passthru request.

Discussed on tech-security@ and tech-kern@. Okay tls@.
2006-12-02 03:10:42 +00:00
elad
1e92f4ba9c Trailing whitespace... 2006-12-01 16:13:36 +00:00
elad
a6c2dfb16d Introduce uvm_is_swap_device(), to check if the passed struct vnode * is
used as a swap device or not.

Okay mrg@.
2006-12-01 16:06:09 +00:00
elad
2f85bad1eb Sync with reality after recent changes. 2006-11-30 16:55:00 +00:00
pooka
0dd37417ef match description of VOP_PUTPAGES with reality 2006-11-28 19:26:30 +00:00
elad
8bb202af97 Move ktrace, ptrace, systrace, and procfs to use kauth(9).
First, remove process_checkioperm() calls from MD code. Similar checks
using kauth(9) routines (on the process scope, using appropriate action)
are done in the callers.

Add secmodel back-end to handle each subsystem.
2006-11-28 17:27:09 +00:00
elad
21bc112176 Implement Veriexec's raw disk policy on-top of kauth(9)'s device scope,
using both the rawio_spec and passthru actions to detect raw disk
activity. Same for kernel memory policy.

Update documentation (no longer need to expose veriexec_rawchk()) and
remove all Veriexec-related bits from specfs.
2006-11-26 20:27:27 +00:00
elad
df07d5d652 I wanted to do this for so long: veriexec_init_fp_ops() -> veriexec_init(). 2006-11-26 16:22:36 +00:00
scw
512f329f66 Document disk_blocksize(9). 2006-11-25 12:00:25 +00:00
elad
2664dc174c Add missing items to the securelevel implications list.
Now it is complete.
2006-11-22 21:00:30 +00:00
elad
4b316db1d1 Introduce KAUTH_REQ_MACHDEP_{ALPHA,X86}_UNMANAGEDMEM to handle access
to unmanaged memory.

These are the last two securelevel references in the MD code.
2006-11-22 12:12:51 +00:00
wiz
e524263824 Add RCS Id. Use Nx. Sort SEE ALSO. Avoid Xr to ourselves.
Avoid marking up commas. Uppercase Dt argument.
2006-11-19 00:26:52 +00:00
wiz
430da4d077 Bump date for previous. 2006-11-19 00:20:02 +00:00
elad
2db3a96be7 Provide a standard authorization wrapper for the device scope. 2006-11-19 00:11:29 +00:00
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