Deleted Added
full compact
audit_pipe.c (172583) audit_pipe.c (173083)
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 172583 2007-10-12 15:09:02Z csjp $
28 * $FreeBSD: head/sys/security/audit/audit_pipe.c 173083 2007-10-27 22:28:01Z csjp $
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>

--- 892 unchanged lines hidden (view full) ---

929 return (error);
930 }
931 }
932 if (ape->ape_record_len <= uio->uio_resid)
933 break;
934 audit_pipe_entry_free(ape);
935 ap->ap_truncates++;
936 } while (1);
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>

--- 892 unchanged lines hidden (view full) ---

929 return (error);
930 }
931 }
932 if (ape->ape_record_len <= uio->uio_resid)
933 break;
934 audit_pipe_entry_free(ape);
935 ap->ap_truncates++;
936 } while (1);
937 ap->ap_reads++;
937 mtx_unlock(&audit_pipe_mtx);
938
939 /*
940 * Now read record to user space memory. Even if the read is short,
941 * we abandon the remainder of the record, supporting only discreet
942 * record reads.
943 */
944 error = uiomove(ape->ape_record, ape->ape_record_len, uio);

--- 112 unchanged lines hidden ---
938 mtx_unlock(&audit_pipe_mtx);
939
940 /*
941 * Now read record to user space memory. Even if the read is short,
942 * we abandon the remainder of the record, supporting only discreet
943 * record reads.
944 */
945 error = uiomove(ape->ape_record, ape->ape_record_len, uio);

--- 112 unchanged lines hidden ---