NetBSD/sys/kern
elad b8a339347f Implement the "device" scope.
It uses an authorization wrapper per device class on the system to
ensure type-safety.

For now, it supports only terminal (TTY) devices, and has two actions
for them: "open terminal" and "privileged set". Sample usage has been
added to i386 and hp300 code for reference.

Update documentation.
2006-09-30 20:05:57 +00:00
..
Make.tags.inc Skip computing tags on IP Filter while its compatibility #defines 2006-09-01 04:55:12 +00:00
Makefile
bufq_disksort.c
bufq_fcfs.c
bufq_priocscan.c
bufq_readprio.c
cnmagic.c
core_elf32.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
core_elf64.c
core_netbsd.c
exec_aout.c
exec_conf.c Make this compile under "no options COREDUMP". 2006-08-30 14:41:06 +00:00
exec_ecoff.c
exec_elf32.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
exec_elf64.c
exec_macho.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
exec_script.c at the request of elad, as veriexec.h has returned, revert the changes 2006-07-26 09:33:57 +00:00
exec_subr.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
genlintstub.awk
init_main.c First take at security model abstraction. 2006-09-08 20:58:56 +00:00
init_sysctl.c correct dcopyout #define for !KTRACE case. 2006-09-24 05:46:14 +00:00
init_sysent.c Regen. (add __weak_alias(sys_ptrace, sys_nosys) when PTRACE is off) 2006-09-01 21:04:45 +00:00
kern_acct.c First take at security model abstraction. 2006-09-08 20:58:56 +00:00
kern_auth.c Implement the "device" scope. 2006-09-30 20:05:57 +00:00
kern_clock.c Add missing initializers 2006-09-02 06:21:32 +00:00
kern_descrip.c add missing initializer 2006-09-02 06:22:45 +00:00
kern_drvctl.c - Add a new DRVCTLCOMMAND ioctl to /dev/drvctl. This is a generic 2006-09-22 04:37:36 +00:00
kern_event.c - Avoid array overrun in kfilter_byname_user() when all user 2006-09-30 02:39:18 +00:00
kern_exec.c Single-thread updates to the process credential. 2006-07-30 21:58:11 +00:00
kern_exit.c Remove duplicated includes, from Jeff Ito -> PR kern/26113. Thanks. 2006-09-23 15:36:12 +00:00
kern_fileassoc.c * Correct hashing macro so it uses FHANDLE_SIZE() 2006-09-08 13:57:38 +00:00
kern_fork.c - Always make p->p_cred a private copy before modifying. 2006-07-17 15:29:06 +00:00
kern_kcont.c
kern_ksyms.c
kern_kthread.c
kern_ktrace.c Add a -t+S flag to ktrace for tracing activity related to sysctl. MIB 2006-09-23 22:01:04 +00:00
kern_lkm.c Don't use KAUTH_RESULT_* where it's not applicable. 2006-09-13 10:07:42 +00:00
kern_lock.c - KERNEL_LOCK_ASSERT_LOCKED: check cpu_biglock_count as well. 2006-09-30 11:59:37 +00:00
kern_lwp.c sys__lwp_create: put newuc back to the pool on failure. 2006-08-14 14:11:21 +00:00
kern_malloc.c use ASSERT_SLEEPABLE where appropriate. 2006-07-21 10:08:41 +00:00
kern_malloc_debug.c
kern_microtime.c
kern_ntptime.c Authorize ntp_adjtime() on the correct scope. 2006-09-09 11:52:56 +00:00
kern_pax.c Change the PaX mprotect(2) restrictions' "global_protection" knob to 2006-09-26 14:48:40 +00:00
kern_physio.c
kern_proc.c Single-thread updates to the process credential. 2006-07-30 21:58:11 +00:00
kern_prot.c First take at security model abstraction. 2006-09-08 20:58:56 +00:00
kern_ras.c
kern_resource.c Don't use KAUTH_RESULT_* where it's not applicable. 2006-09-13 10:07:42 +00:00
kern_sa.c
kern_sig.c - fix initializer 2006-09-02 06:29:13 +00:00
kern_subr.c make powerhook_establish use const char*, not char *. This solves lots of 2006-09-24 06:51:39 +00:00
kern_synch.c make the bpendtsleep: label only active if KERN_SYNCH_BPENDTSLEEP_LABEL 2006-09-07 18:41:28 +00:00
kern_sysctl.c Add a -t+S flag to ktrace for tracing activity related to sysctl. MIB 2006-09-23 22:01:04 +00:00
kern_systrace.c add missing initializer 2006-09-02 06:35:49 +00:00
kern_tc.c Reduce hardclock() code path length wrt/ multiply/divide by 2006-09-24 06:39:28 +00:00
kern_time.c PR/34612: Bucky Katz: SA returns from sleep do not set the signal flags 2006-09-25 18:28:56 +00:00
kern_timeout.c
kern_todr.c Minor KNF, replace some spaces with tabs. 2006-09-24 18:24:55 +00:00
kern_uuid.c
kern_verifiedexec.c Pretending to be Elad's keyboard: 2006-08-11 19:17:47 +00:00
kern_xxx.c First take at security model abstraction. 2006-09-08 20:58:56 +00:00
kgdb_stub.c
makesyscalls.sh
subr_autoconf.c
subr_blist.c
subr_bufq.c
subr_callback.c
subr_devsw.c
subr_disk.c - Define disk information, disk geometry, and disk partition dictionary 2006-09-22 04:48:38 +00:00
subr_disk_mbr.c PR# 33260: [dM] kernel divide-by-zero for some broken disks 2006-09-23 11:51:04 +00:00
subr_evcnt.c
subr_extent.c use ASSERT_SLEEPABLE where appropriate. 2006-07-21 10:08:41 +00:00
subr_iostat.c Change iostat_alloc() to take the parent pointer and the name directly, so 2006-08-23 17:19:32 +00:00
subr_kmem.c don't include sys/lock.h as it is no longer necessary. 2006-08-28 13:41:04 +00:00
subr_log.c add missing initializer 2006-09-03 06:24:21 +00:00
subr_once.c
subr_optstr.c
subr_pool.c avoid empty else statement 2006-09-03 06:25:19 +00:00
subr_prf.c Fix %X in kernel printf, from Arnaud Degroote in PR kern/34459. 2006-09-03 17:06:36 +00:00
subr_prof.c
subr_userconf.c
subr_vmem.c Use %zu for size_t 2006-08-21 09:05:22 +00:00
subr_workqueue.c add workqueue_destroy(). 2006-09-16 11:15:00 +00:00
subr_xxx.c
sys_generic.c use c99 initializers 2006-09-03 06:34:34 +00:00
sys_pipe.c Remove duplicated includes, from Jeff Ito -> PR kern/26113. Thanks. 2006-09-23 15:36:12 +00:00
sys_pmc.c
sys_process.c process_domem exists for ktrace/ptrace/systrace 2006-09-01 21:05:33 +00:00
sys_socket.c
syscalls.c Missed commit (Regen'ed). 2006-09-01 22:23:18 +00:00
syscalls.conf
syscalls.master Don't conditionalize *sys_ptrace. The lack of sys_ptrace will be dealt 2006-09-01 20:58:18 +00:00
sysv_ipc.c
sysv_msg.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
sysv_sem.c Coverity CID 2951, 2953, 2954: Add KASSERTS before null deref 2006-09-29 19:39:43 +00:00
sysv_shm.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
tty.c Avoid NULL deref (this is called with lwp=NULL from ppp interrupt context) 2006-09-13 13:28:22 +00:00
tty_bsdpty.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
tty_conf.c
tty_ptm.c PR/32682: Hauke Fath: netbsd-3 ptyfs intermittent failure with Matlab 2006-09-22 15:15:56 +00:00
tty_pty.c Remove duplicated includes, from Jeff Ito -> PR kern/26113. Thanks. 2006-09-23 15:36:12 +00:00
tty_subr.c
tty_tty.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
uipc_domain.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
uipc_mbuf.c use c99 initializers 2006-09-03 21:12:14 +00:00
uipc_mbuf2.c
uipc_proto.c use c99 initializers 2006-09-03 21:12:14 +00:00
uipc_sem.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
uipc_socket.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
uipc_socket2.c Fix broken comments - there is no SO_ISCONNECTED or SO_ISCONFIRMING 2006-08-16 18:31:54 +00:00
uipc_syscalls.c Don't leave a dangling socket (no associated struct file) if 2006-08-22 13:39:48 +00:00
uipc_usrreq.c use c99 initializers 2006-09-03 21:12:14 +00:00
vfs_bio.c unexport getnewbuf. 2006-09-10 06:35:42 +00:00
vfs_cache.c make comment match logic in cache_lookup dvp unlock code 2006-09-10 05:51:33 +00:00
vfs_getcwd.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
vfs_hooks.c
vfs_init.c
vfs_lockf.c Fix all the -D*DEBUG* code that it was rotting away and did not even compile. 2006-08-17 17:11:27 +00:00
vfs_lookup.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
vfs_subr.c Add %'s to go with PRI format constants. 2006-08-24 01:08:00 +00:00
vfs_syscalls.c Don't use KAUTH_RESULT_* where it's not applicable. 2006-09-13 10:07:42 +00:00
vfs_vnops.c Fix typo. 2006-09-12 08:23:51 +00:00
vfs_xattr.c Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
vnode_if.c
vnode_if.sh
vnode_if.src