audit_pipe.c (161582) | audit_pipe.c (161646) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * | 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 --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * $FreeBSD: head/sys/security/audit/audit_pipe.c 161582 2006-08-24 17:42:38Z rwatson $ | 28 * $FreeBSD: head/sys/security/audit/audit_pipe.c 161646 2006-08-26 17:59:31Z rwatson $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/condvar.h> 33#include <sys/conf.h> 34#include <sys/eventhandler.h> 35#include <sys/filio.h> 36#include <sys/kernel.h> --- 813 unchanged lines hidden (view full) --- 850 851 case AUDITPIPE_FLUSH: 852 mtx_lock(&audit_pipe_mtx); 853 audit_pipe_flush(ap); 854 mtx_unlock(&audit_pipe_mtx); 855 error = 0; 856 break; 857 | 29 */ 30 31#include <sys/param.h> 32#include <sys/condvar.h> 33#include <sys/conf.h> 34#include <sys/eventhandler.h> 35#include <sys/filio.h> 36#include <sys/kernel.h> --- 813 unchanged lines hidden (view full) --- 850 851 case AUDITPIPE_FLUSH: 852 mtx_lock(&audit_pipe_mtx); 853 audit_pipe_flush(ap); 854 mtx_unlock(&audit_pipe_mtx); 855 error = 0; 856 break; 857 |
858 case AUDITPIPE_GET_MAXAUDITDATA: 859 *(u_int *)data = MAXAUDITDATA; 860 error = 0; 861 break; 862 |
|
858 case AUDITPIPE_GET_INSERTS: 859 *(u_int *)data = ap->ap_inserts; 860 error = 0; 861 break; 862 863 case AUDITPIPE_GET_READS: 864 *(u_int *)data = ap->ap_reads; 865 error = 0; --- 186 unchanged lines hidden --- | 863 case AUDITPIPE_GET_INSERTS: 864 *(u_int *)data = ap->ap_inserts; 865 error = 0; 866 break; 867 868 case AUDITPIPE_GET_READS: 869 *(u_int *)data = ap->ap_reads; 870 error = 0; --- 186 unchanged lines hidden --- |