diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-06-07 22:27:15 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-06-07 22:27:15 +0000 |
commit | 9f332c91ef20b2392e96c3aed469ba04aeb7b13f (patch) | |
tree | 23e84b7f5fd5465f12ed2c509373ee128d73a43a /sys/kern/kern_fork.c | |
parent | 1f72bba08402b15a14e6c65f84d0d252f2d2bc1c (diff) | |
download | FreeBSD-src-9f332c91ef20b2392e96c3aed469ba04aeb7b13f.zip FreeBSD-src-9f332c91ef20b2392e96c3aed469ba04aeb7b13f.tar.gz |
Move per-process audit state from a pointer in the proc structure to
embedded storage in struct ucred. This allows audit state to be cached
with the thread, avoiding locking operations with each system call, and
makes it available in asynchronous execution contexts, such as deep in
the network stack or VFS.
Reviewed by: csjp
Approved by: re (kensmith)
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index ae3531c..04b31d4 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -279,9 +279,6 @@ fork1(td, flags, pages, procp) #ifdef MAC mac_init_proc(newproc); #endif -#ifdef AUDIT - audit_proc_alloc(newproc); -#endif knlist_init(&newproc->p_klist, &newproc->p_mtx, NULL, NULL, NULL); STAILQ_INIT(&newproc->p_ktr); @@ -510,9 +507,6 @@ again: p2->p_sflag = PS_INMEM; PROC_SUNLOCK(p2); td2->td_ucred = crhold(p2->p_ucred); -#ifdef AUDIT - audit_proc_fork(p1, p2); -#endif pargs_hold(p2->p_args); if (flags & RFSIGSHARE) { @@ -753,9 +747,6 @@ fail: #ifdef MAC mac_destroy_proc(newproc); #endif -#ifdef AUDIT - audit_proc_free(newproc); -#endif uma_zfree(proc_zone, newproc); if (p1->p_flag & P_HADTHREADS) { PROC_LOCK(p1); |