audit_pipe.c (179726) | audit_pipe.c (181053) |
---|---|
1/*- 2 * Copyright (c) 2006 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/security/audit/audit_pipe.c 179726 2008-06-11 18:55:19Z ed $"); | 30__FBSDID("$FreeBSD: head/sys/security/audit/audit_pipe.c 181053 2008-07-31 09:54:35Z rwatson $"); |
31 32#include <sys/param.h> 33#include <sys/condvar.h> 34#include <sys/conf.h> 35#include <sys/eventhandler.h> 36#include <sys/filio.h> 37#include <sys/kernel.h> 38#include <sys/lock.h> --- 453 unchanged lines hidden (view full) --- 492 mtx_lock(&audit_pipe_mtx); 493 TAILQ_FOREACH(ap, &audit_pipe_list, ap_list) 494 audit_pipe_append(ap, record, record_len); 495 audit_pipe_records++; 496 mtx_unlock(&audit_pipe_mtx); 497 cv_broadcastpri(&audit_pipe_cv, PSOCK); 498} 499 | 31 32#include <sys/param.h> 33#include <sys/condvar.h> 34#include <sys/conf.h> 35#include <sys/eventhandler.h> 36#include <sys/filio.h> 37#include <sys/kernel.h> 38#include <sys/lock.h> --- 453 unchanged lines hidden (view full) --- 492 mtx_lock(&audit_pipe_mtx); 493 TAILQ_FOREACH(ap, &audit_pipe_list, ap_list) 494 audit_pipe_append(ap, record, record_len); 495 audit_pipe_records++; 496 mtx_unlock(&audit_pipe_mtx); 497 cv_broadcastpri(&audit_pipe_cv, PSOCK); 498} 499 |
500 | |
501/* 502 * Pop the next record off of an audit pipe. 503 */ 504static struct audit_pipe_entry * 505audit_pipe_pop(struct audit_pipe *ap) 506{ 507 struct audit_pipe_entry *ape; 508 --- 550 unchanged lines hidden --- | 500/* 501 * Pop the next record off of an audit pipe. 502 */ 503static struct audit_pipe_entry * 504audit_pipe_pop(struct audit_pipe *ap) 505{ 506 struct audit_pipe_entry *ape; 507 --- 550 unchanged lines hidden --- |