HardenedBSD/sys/kern
Garrett Wollman a29f300e80 The long-awaited mega-massive-network-code- cleanup. Part I.
This commit includes the following changes:
1) Old-style (pr_usrreq()) protocols are no longer supported, the compatibility
glue for them is deleted, and the kernel will panic on boot if any are compiled
in.

2) Certain protocol entry points are modified to take a process structure,
so they they can easily tell whether or not it is possible to sleep, and
also to access credentials.

3) SS_PRIV is no more, and with it goes the SO_PRIVSTATE setsockopt()
call.  Protocols should use the process pointer they are now passed.

4) The PF_LOCAL and PF_ROUTE families have been updated to use the new
style, as has the `raw' skeleton family.

5) PF_LOCAL sockets now obey the process's umask when creating a socket
in the filesystem.

As a result, LINT is now broken.  I'm hoping that some enterprising hacker
with a bit more time will either make the broken bits work (should be
easy for netipx) or dike them out.
1997-04-27 20:01:29 +00:00
..
imgact_aout.c Fully implement vfork. Vfork is now much much faster than even our 1997-04-13 01:48:35 +00:00
imgact_elf.c Fully implement vfork. Vfork is now much much faster than even our 1997-04-13 01:48:35 +00:00
imgact_gzip.c Fully implement vfork. Vfork is now much much faster than even our 1997-04-13 01:48:35 +00:00
imgact_shell.c Don't clobber user space argv0 memory on shell exec, mainly for vfork() 1997-04-23 22:07:05 +00:00
inflate.c
init_main.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
init_smp.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
init_sysent.c Regenerate (added issetugid) 1997-03-31 14:55:05 +00:00
init_sysvec.c
kern_acct.c
kern_clock.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
kern_conf.c
kern_descrip.c Removed support for OLD_PIPE. <sys/stat.h> is now missing the hack that 1997-04-09 16:53:45 +00:00
kern_exec.c Don't clobber user space argv0 memory on shell exec, mainly for vfork() 1997-04-23 22:07:05 +00:00
kern_exit.c The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
kern_fork.c Create sysctl kern.fast_vfork, on for uniprocessor by default, off for 1997-04-26 15:59:50 +00:00
kern_ktrace.c
kern_lkm.c Make MOD_* macros almost consistent: 1997-04-06 11:14:13 +00:00
kern_lock.c Fixed commented-out Lite2 sysctl debug.lockpausetime. 1997-04-01 10:18:51 +00:00
kern_lockf.c Use OID_AUTO instead of a magic number for Lite2 sysctl debug.lockf_debug. 1997-04-01 10:30:06 +00:00
kern_malloc.c
kern_mib.c
kern_ntptime.c
kern_opt.c
kern_physio.c
kern_proc.c
kern_prot.c Don't incorrectly set P_SUGID in setre[ug]id() for no reason, as noticed 1997-04-02 17:05:49 +00:00
kern_random.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
kern_resource.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
kern_shutdown.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
kern_sig.c
kern_subr.c
kern_synch.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
kern_sysctl.c Include <sys/buf.h> instead of <sys/vnode.h>. kern_sysctl.c no 1997-04-09 15:23:09 +00:00
kern_tc.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
kern_time.c
kern_timeout.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
kern_xxx.c
Make.tags.inc
Makefile
makesyscalls.sh
md5c.c
subr_autoconf.c
subr_clist.c
subr_disklabel.c
subr_diskmbr.c Avoid division by 0 in check_part(). (It occurred when max_nsectors == 0. 1997-04-19 14:14:17 +00:00
subr_diskslice.c
subr_dkbad.c
subr_log.c
subr_param.c
subr_prf.c
subr_prof.c
subr_rlist.c
subr_smp.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
subr_trap.c Man the liferafts! Here comes the long awaited SMP -> -current merge! 1997-04-26 11:46:25 +00:00
subr_xxx.c
sys_generic.c
sys_pipe.c Removed support for OLD_PIPE. <sys/stat.h> is now missing the hack that 1997-04-09 16:53:45 +00:00
sys_process.c Prevent debugger attachment to init when securelevel > 0. 1997-04-27 19:02:37 +00:00
sys_socket.c The long-awaited mega-massive-network-code- cleanup. Part I. 1997-04-27 20:01:29 +00:00
syscalls.c Regenerate (added issetugid) 1997-03-31 14:55:05 +00:00
syscalls.master issetugid is now implemented rather than reserved 1997-03-31 14:52:50 +00:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c
tty_compat.c
tty_conf.c
tty_cons.c
tty_pty.c
tty_snoop.c
tty_subr.c
tty_tb.c
tty_tty.c
tty.c
uipc_domain.c The long-awaited mega-massive-network-code- cleanup. Part I. 1997-04-27 20:01:29 +00:00
uipc_mbuf.c
uipc_proto.c The long-awaited mega-massive-network-code- cleanup. Part I. 1997-04-27 20:01:29 +00:00
uipc_sockbuf.c The long-awaited mega-massive-network-code- cleanup. Part I. 1997-04-27 20:01:29 +00:00
uipc_socket2.c The long-awaited mega-massive-network-code- cleanup. Part I. 1997-04-27 20:01:29 +00:00
uipc_socket.c The long-awaited mega-massive-network-code- cleanup. Part I. 1997-04-27 20:01:29 +00:00
uipc_syscalls.c The long-awaited mega-massive-network-code- cleanup. Part I. 1997-04-27 20:01:29 +00:00
uipc_usrreq.c The long-awaited mega-massive-network-code- cleanup. Part I. 1997-04-27 20:01:29 +00:00
vfs_bio.c Improve the buffer cache memory policy by moving pages over to the 1997-04-13 03:33:25 +00:00
vfs_cache.c
vfs_cluster.c Don't zero b_dirtyoff and b_dirtyend on error. 1997-04-25 11:14:00 +00:00
vfs_conf.c
vfs_export.c copyin the export network mask to the correct variable. 1997-04-25 06:47:12 +00:00
vfs_extattr.c [Previous comment was incorrect for these files] 1997-04-04 17:47:43 +00:00
vfs_init.c
vfs_lookup.c [Previous comment was incorrect for these files] 1997-04-04 17:47:43 +00:00
vfs_mount.c
vfs_subr.c copyin the export network mask to the correct variable. 1997-04-25 06:47:12 +00:00
vfs_syscalls.c [Previous comment was incorrect for these files] 1997-04-04 17:47:43 +00:00
vfs_vnops.c [Previous comment was incorrect for these files] 1997-04-04 17:47:43 +00:00
vnode_if.pl
vnode_if.sh
vnode_if.src