NetBSD/sys/netinet
elad 5f7169ccb1 First take at security model abstraction.
- Add a few scopes to the kernel: system, network, and machdep.

- Add a few more actions/sub-actions (requests), and start using them as
  opposed to the KAUTH_GENERIC_ISSUSER place-holders.

- Introduce a basic set of listeners that implement our "traditional"
  security model, called "bsd44". This is the default (and only) model we
  have at the moment.

- Update all relevant documentation.

- Add some code and docs to help folks who want to actually use this stuff:

  * There's a sample overlay model, sitting on-top of "bsd44", for
    fast experimenting with tweaking just a subset of an existing model.

    This is pretty cool because it's *really* straightforward to do stuff
    you had to use ugly hacks for until now...

  * And of course, documentation describing how to do the above for quick
    reference, including code samples.

All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:

	http://kauth.linbsd.org/kauthwiki

NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:

  - Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
  - Checks 'securelevel' directly,
  - Checks a uid/gid directly.

(or if you feel you have to, contact me first)

This is still work in progress; It's far from being done, but now it'll
be a lot easier.

Relevant mailing list threads:

http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html

Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).

Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.

Happy birthday Randi! :)
2006-09-08 20:58:56 +00:00
..
files.ipfilter merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
files.netinet merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
icmp6.h 'advertisment' -> 'advertisement', from leonardo chiquitto filho 2006-03-07 18:15:28 +00:00
icmp_var.h
if_arp.c Fix initializers 2006-08-30 15:45:54 +00:00
if_atm.c fix initializers and add const. 2006-08-30 16:40:03 +00:00
if_atm.h
if_ether.h
if_inarp.h Integrate Common Address Redundancy Procotol (CARP) from OpenBSD 2006-05-18 09:05:49 +00:00
igmp_var.h
igmp.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
igmp.h
in4_cksum.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
in_cksum.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
in_gif.c Extract predicate M_UNWRITABLE(m, len), which is true iff len 2006-07-28 17:34:13 +00:00
in_gif.h
in_offload.h
in_pcb_hdr.h
in_pcb.c First take at security model abstraction. 2006-09-08 20:58:56 +00:00
in_pcb.h Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
in_proto.c remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
in_proto.h
in_systm.h
in_var.h Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
in.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
in.h Integrate Common Address Redundancy Procotol (CARP) from OpenBSD 2006-05-18 09:05:49 +00:00
ip6.h Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292). 2006-05-05 00:03:21 +00:00
ip_carp.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
ip_carp.h Prototype for tvtohz() is no longer needed here. 2006-06-13 15:57:15 +00:00
ip_ecn.c Import of TCP ECN algorithm for congestion control. 2006-09-05 00:29:35 +00:00
ip_ecn.h
ip_encap.c remove some dead code 2006-05-28 11:07:04 +00:00
ip_encap.h
ip_flow.c increment ips_total too. 2006-09-02 12:41:01 +00:00
ip_gre.c remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
ip_gre.h
ip_icmp.c fix initializers 2006-08-30 18:53:04 +00:00
ip_icmp.h Comment out attribute packed. Gcc4 warns us that the field is too narrow 2006-05-14 02:34:41 +00:00
ip_id.c static comes first 2006-08-30 18:54:19 +00:00
ip_input.c First take at security model abstraction. 2006-09-08 20:58:56 +00:00
ip_mroute.c Fix initializers. 2006-08-30 19:00:22 +00:00
ip_mroute.h
ip_output.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
ip_var.h Change "inline" back to "__inline" in .h files -- C99 is still too 2006-02-16 20:17:12 +00:00
ip.h Import of TCP ECN algorithm for congestion control. 2006-09-05 00:29:35 +00:00
Makefile Integrate Common Address Redundancy Procotol (CARP) from OpenBSD 2006-05-18 09:05:49 +00:00
pim_var.h
pim.h
raw_ip.c First take at security model abstraction. 2006-09-08 20:58:56 +00:00
tcp_debug.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
tcp_debug.h
tcp_fsm.h
tcp_input.c Import of TCP ECN algorithm for congestion control. 2006-09-05 00:29:35 +00:00
tcp_output.c Import of TCP ECN algorithm for congestion control. 2006-09-05 00:29:35 +00:00
tcp_sack.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
tcp_seq.h
tcp_subr.c Import of TCP ECN algorithm for congestion control. 2006-09-05 00:29:35 +00:00
tcp_timer.c integrate kauth. 2006-05-14 21:19:33 +00:00
tcp_timer.h
tcp_usrreq.c First take at security model abstraction. 2006-09-08 20:58:56 +00:00
tcp_var.h Import of TCP ECN algorithm for congestion control. 2006-09-05 00:29:35 +00:00
tcp.h Import of TCP ECN algorithm for congestion control. 2006-09-05 00:29:35 +00:00
tcpip.h
udp_usrreq.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
udp_var.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
udp.h