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_exit.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_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 9cab321..eefe6b0 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -811,9 +811,6 @@ loop: #ifdef MAC mac_destroy_proc(p); #endif -#ifdef AUDIT - audit_proc_free(p); -#endif KASSERT(FIRST_THREAD_IN_PROC(p), ("kern_wait: no residual thread!")); uma_zfree(proc_zone, p); |