Commit Graph

6796 Commits

Author SHA1 Message Date
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
pooka
b98361ea36 sauce catchup 2006-12-01 15:31:25 +00:00
bouyer
7b4730a29f Add ahcisata(4), a driver for AHCI 1.0 and 1.1 controllers. Tested on the sata
ports of a Intel 63xxESB chipset. Does not support NCQ yet.
2006-11-30 21:01:15 +00:00
elad
2f85bad1eb Sync with reality after recent changes. 2006-11-30 16:55:00 +00:00
hira
be6e51a13a Add missing spaces after section suffix. 2006-11-29 16:50:53 +00:00
elad
646f2112d3 Make Veriexec use proplib(3) for kernel-userland data passing.
Obviously, this breaks the already unstable Veriexec ABI, but that's
it. Some cool additions are planned to be introduced, and this just
makes it so that NetBSD 4.0 users will be able to easily use them as
well.

This also removes the fingerprint type name limit, so relevant code
was adjusted.

Thoroughly tested (even uncovered a bug in proplib! thanks for fixing
that cube@!). Documentation updated.
2006-11-28 22:22:02 +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
wiz
dee9175769 Bump date for previous. 2006-11-26 16:36:06 +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
jmmv
175531f6ed Mention the maximum line length allowed in the passwd file.
Inspired by PR misc/34664.
2006-11-26 11:43:48 +00:00
jmmv
964c039645 Explain that groups can be defined using multiple lines due to the fixed
line length used to parse the file.  Closes PR misc/34664.
2006-11-26 11:35:39 +00:00
christos
2c8c97cf53 Add LevelOne WNC-0301USB 2006-11-25 21:44:44 +00:00
elad
6a55f622e6 First take of MI boot(8) man-page, suggested by agc@.
Okay agc@.
2006-11-25 17:43:47 +00:00
christos
c0179c282a spell precede; from Zafer 2006-11-25 16:48:31 +00:00
scw
512f329f66 Document disk_blocksize(9). 2006-11-25 12:00:25 +00:00
christos
1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
rpaulo
785b8e0981 WARNING: input date is in the past! 2006-11-23 18:02:15 +00:00
elad
6d74a5fdc7 Document Veriexec strict levels (hm, maybe we should have veriexec(8)?)
as requested by Adam Hamsik.
2006-11-23 13:23:22 +00:00
rpaulo
370be902f0 WARNING: date is in the future! 2006-11-23 04:12:51 +00:00
rpaulo
5423539f94 New EtherIP driver based on tap(4) and gif(4) by Hans Rosenfeld.
Notable changes:
	* Fixes PR 34268.
	* Separates the code from gif(4) (which is more cleaner).
	* Allows the usage of STP (Spanning Tree Protocol).
	* Removed EtherIP implementation from gif(4)/tap(4).

Some input from Christos.
2006-11-23 04:07:07 +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
eb704f9789 SSP is not enabled by default, update documentation.
Pointed out by yamt@, thanks!
2006-11-22 13:00:02 +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
elad
a84fee7faf Initial implementation of PaX Segvguard (this is still work-in-progress,
it's just to get it out of my local tree).
2006-11-22 02:02: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
wiz
4dcf8d1488 New sentence, new line. Typo fixes. Slightly more appropriate mdoc macro. 2006-11-19 00:05:42 +00:00
pooka
e518d4247c elf loader lives in /libexec these days. and besides, it's called
ld.elf_so, not ld.so_elf
2006-11-18 14:32:14 +00:00
jld
0919614fc2 Add /l to description of "ps" abbreviation for "show all procs". 2006-11-18 08:48:32 +00:00
oster
93a18158f4 Document 'show all procs /l'. (i.e. catch up with reality) 2006-11-18 01:20:58 +00:00
pooka
8bf1f71b17 document PUFFSFLAG_NOCACHE 2006-11-17 18:00:20 +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
ad
119899c354 Remove authors section, and update history where appropriate. 2006-11-13 16:33:56 +00:00
ad
4608df106c - Remove AUTHORs section.
- Mention twa.
2006-11-13 16:29:05 +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
pooka
095997aad1 initial documentation for the puffs message interface 2006-11-09 01:29:34 +00:00
xtraeme
f0a9e30534 First appeared in 3.1 not 4.0. 2006-11-06 21:32:57 +00:00
xtraeme
c3ca7d0b90 It was added in 3.1 not 4.0. 2006-11-06 21:31:26 +00:00
xtraeme
28214abdba First appeared in NetBSD 3.1 not 4.0... and bump date. 2006-11-06 21:27:15 +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