Deleted Added
full compact
audit_private.h (155408) audit_private.h (156291)
1/*
2 * Copyright (c) 1999-2005 Apple Computer, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
1/*
2 * Copyright (c) 1999-2005 Apple Computer, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/security/audit/audit_private.h 155408 2006-02-06 22:50:39Z rwatson $
29 * $FreeBSD: head/sys/security/audit/audit_private.h 156291 2006-03-04 17:00:55Z rwatson $
30 */
31
32/*
33 * This include file contains function prototypes and type definitions used
34 * within the audit implementation.
35 */
36
37#ifndef _BSM_AUDIT_PRIVATE_H

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

228void audit_commit(struct kaudit_record *ar, int error,
229 int retval);
230struct kaudit_record *audit_new(int event, struct thread *td);
231
232/*
233 * Functions relating to the conversion of internal kernel audit records to
234 * the BSM file format.
235 */
30 */
31
32/*
33 * This include file contains function prototypes and type definitions used
34 * within the audit implementation.
35 */
36
37#ifndef _BSM_AUDIT_PRIVATE_H

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

228void audit_commit(struct kaudit_record *ar, int error,
229 int retval);
230struct kaudit_record *audit_new(int event, struct thread *td);
231
232/*
233 * Functions relating to the conversion of internal kernel audit records to
234 * the BSM file format.
235 */
236struct au_record;
236int kaudit_to_bsm(struct kaudit_record *kar,
237 struct au_record **pau);
238int bsm_rec_verify(void *rec);
239
240/*
241 * Kernel versions of the libbsm audit record functions.
242 */
243void kau_free(struct au_record *rec);

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

254 * Flags to use on audit files when opening and closing.
255 */
256#define AUDIT_OPEN_FLAGS (FWRITE | O_APPEND)
257#define AUDIT_CLOSE_FLAGS (FWRITE | O_APPEND)
258
259#include <sys/fcntl.h>
260#include <sys/kernel.h>
261#include <sys/malloc.h>
237int kaudit_to_bsm(struct kaudit_record *kar,
238 struct au_record **pau);
239int bsm_rec_verify(void *rec);
240
241/*
242 * Kernel versions of the libbsm audit record functions.
243 */
244void kau_free(struct au_record *rec);

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

255 * Flags to use on audit files when opening and closing.
256 */
257#define AUDIT_OPEN_FLAGS (FWRITE | O_APPEND)
258#define AUDIT_CLOSE_FLAGS (FWRITE | O_APPEND)
259
260#include <sys/fcntl.h>
261#include <sys/kernel.h>
262#include <sys/malloc.h>
262#include <security/audit/audit.h>
263
264/*
265 * Some of the BSM tokenizer functions take different parameters in the
266 * kernel implementations in order to save the copying of large kernel
267 * data structures. The prototypes of these functions are declared here.
268 */
269token_t *kau_to_socket(struct socket_au_info *soi);
270

--- 35 unchanged lines hidden ---
263
264/*
265 * Some of the BSM tokenizer functions take different parameters in the
266 * kernel implementations in order to save the copying of large kernel
267 * data structures. The prototypes of these functions are declared here.
268 */
269token_t *kau_to_socket(struct socket_au_info *soi);
270

--- 35 unchanged lines hidden ---