]> git.saurik.com Git - apple/xnu.git/blame - bsd/sys/bsm_klib.h
xnu-517.3.15.tar.gz
[apple/xnu.git] / bsd / sys / bsm_klib.h
CommitLineData
de355530 1/*
55e303ae 2 * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
de355530
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
43866e37 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
de355530 7 *
43866e37
A
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
de355530
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
43866e37
A
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
de355530
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
de355530 25
55e303ae
A
26#ifndef _BSM_KLIB_H_
27#define _BSM_KLIB_H_
de355530 28
55e303ae
A
29#define AU_PRS_SUCCESS 1
30#define AU_PRS_FAILURE 2
31#define AU_PRS_BOTH (AU_PRS_SUCCESS|AU_PRS_FAILURE)
de355530 32
55e303ae
A
33#ifdef KERNEL
34int au_preselect(au_event_t event, au_mask_t *mask_p, int sorf);
35au_event_t flags_to_openevent(int oflags);
36void fill_vattr(struct vattr *v, struct vnode_au_info *vn_info);
37void canon_path(struct proc *p, char *path, char *cpath);
38/*
39 * Define a system call to audit event mapping table.
40 */
41extern au_event_t sys_au_event[];
42extern int nsys_au_event; /* number of entries in this table */
de355530 43
55e303ae 44#endif /*KERNEL*/
de355530 45
55e303ae 46#endif /* ! _BSM_KLIB_H_ */