1181053Srwatson/*- 2188313Srwatson * Copyright (c) 1999-2009 Apple Inc. 3155192Srwatson * All rights reserved. 4155192Srwatson * 5155192Srwatson * Redistribution and use in source and binary forms, with or without 6155192Srwatson * modification, are permitted provided that the following conditions 7155192Srwatson * are met: 8155192Srwatson * 1. Redistributions of source code must retain the above copyright 9155192Srwatson * notice, this list of conditions and the following disclaimer. 10155192Srwatson * 2. Redistributions in binary form must reproduce the above copyright 11155192Srwatson * notice, this list of conditions and the following disclaimer in the 12155192Srwatson * documentation and/or other materials provided with the distribution. 13180701Srwatson * 3. Neither the name of Apple Inc. ("Apple") nor the names of 14155192Srwatson * its contributors may be used to endorse or promote products derived 15155192Srwatson * from this software without specific prior written permission. 16155192Srwatson * 17155192Srwatson * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND 18155192Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19155192Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20155192Srwatson * ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR 21155192Srwatson * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22155192Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23155192Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24155192Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25155192Srwatson * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26155192Srwatson * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27155192Srwatson * POSSIBILITY OF SUCH DAMAGE. 28155192Srwatson * 29155192Srwatson * $FreeBSD$ 30155192Srwatson */ 31155192Srwatson 32155192Srwatson/* 33155192Srwatson * This include file contains function prototypes and type definitions used 34155192Srwatson * within the audit implementation. 35155192Srwatson */ 36155192Srwatson 37156882Srwatson#ifndef _SECURITY_AUDIT_PRIVATE_H_ 38156882Srwatson#define _SECURITY_AUDIT_PRIVATE_H_ 39155192Srwatson 40155192Srwatson#ifndef _KERNEL 41155192Srwatson#error "no user-serviceable parts inside" 42155192Srwatson#endif 43155192Srwatson 44255219Spjd#include <sys/caprights.h> 45155192Srwatson#include <sys/ipc.h> 46155192Srwatson#include <sys/socket.h> 47155192Srwatson#include <sys/ucred.h> 48155192Srwatson 49155192Srwatson#ifdef MALLOC_DECLARE 50155192SrwatsonMALLOC_DECLARE(M_AUDITBSM); 51155192SrwatsonMALLOC_DECLARE(M_AUDITDATA); 52155192SrwatsonMALLOC_DECLARE(M_AUDITPATH); 53155192SrwatsonMALLOC_DECLARE(M_AUDITTEXT); 54195177SssonMALLOC_DECLARE(M_AUDITGIDSET); 55155192Srwatson#endif 56155192Srwatson 57155192Srwatson/* 58156889Srwatson * Audit control variables that are usually set/read via system calls and 59156889Srwatson * used to control various aspects of auditing. 60155192Srwatson */ 61155192Srwatsonextern struct au_qctrl audit_qctrl; 62155192Srwatsonextern struct audit_fstat audit_fstat; 63155192Srwatsonextern struct au_mask audit_nae_mask; 64155192Srwatsonextern int audit_panic_on_write_fail; 65155192Srwatsonextern int audit_fail_stop; 66161813Swsalamonextern int audit_argv; 67161813Swsalamonextern int audit_arge; 68155192Srwatson 69155192Srwatson/* 70155192Srwatson * Success/failure conditions for the conversion of a kernel audit record to 71155192Srwatson * BSM format. 72155192Srwatson */ 73156889Srwatson#define BSM_SUCCESS 0 74156889Srwatson#define BSM_FAILURE 1 75156889Srwatson#define BSM_NOAUDIT 2 76155192Srwatson 77155192Srwatson/* 78159269Srwatson * Defines for the kernel audit record k_ar_commit field. Flags are set to 79159269Srwatson * indicate what sort of record it is, and which preselection mechanism 80159269Srwatson * selected it. 81155192Srwatson */ 82155192Srwatson#define AR_COMMIT_KERNEL 0x00000001U 83155192Srwatson#define AR_COMMIT_USER 0x00000010U 84155192Srwatson 85159269Srwatson#define AR_PRESELECT_TRAIL 0x00001000U 86159269Srwatson#define AR_PRESELECT_PIPE 0x00002000U 87159269Srwatson 88162380Scsjp#define AR_PRESELECT_USER_TRAIL 0x00004000U 89162380Scsjp#define AR_PRESELECT_USER_PIPE 0x00008000U 90162380Scsjp 91155192Srwatson/* 92155192Srwatson * Audit data is generated as a stream of struct audit_record structures, 93155192Srwatson * linked by struct kaudit_record, and contain storage for possible audit so 94155192Srwatson * that it will not need to be allocated during the processing of a system 95155192Srwatson * call, both improving efficiency and avoiding sleeping at untimely moments. 96155192Srwatson * This structure is converted to BSM format before being written to disk. 97155192Srwatson */ 98155192Srwatsonstruct vnode_au_info { 99156889Srwatson mode_t vn_mode; 100156889Srwatson uid_t vn_uid; 101156889Srwatson gid_t vn_gid; 102156889Srwatson dev_t vn_dev; 103156889Srwatson long vn_fsid; 104156889Srwatson long vn_fileid; 105156889Srwatson long vn_gen; 106155192Srwatson}; 107155192Srwatson 108155192Srwatsonstruct groupset { 109195177Ssson gid_t *gidset; 110195177Ssson u_int gidset_size; 111155192Srwatson}; 112155192Srwatson 113155192Srwatsonstruct socket_au_info { 114180709Srwatson int so_domain; 115155192Srwatson int so_type; 116155192Srwatson int so_protocol; 117156889Srwatson in_addr_t so_raddr; /* Remote address if INET socket. */ 118156889Srwatson in_addr_t so_laddr; /* Local address if INET socket. */ 119156889Srwatson u_short so_rport; /* Remote port. */ 120156889Srwatson u_short so_lport; /* Local port. */ 121155192Srwatson}; 122155192Srwatson 123191270Srwatson/* 124191270Srwatson * The following is used for A_OLDSETQCTRL and AU_OLDGETQCTRL and a 64-bit 125191270Srwatson * userland. 126191270Srwatson */ 127191270Srwatsonstruct au_qctrl64 { 128191270Srwatson u_int64_t aq64_hiwater; 129191270Srwatson u_int64_t aq64_lowater; 130191270Srwatson u_int64_t aq64_bufsz; 131191270Srwatson u_int64_t aq64_delay; 132191270Srwatson u_int64_t aq64_minfree; 133191270Srwatson}; 134191270Srwatsontypedef struct au_qctrl64 au_qctrl64_t; 135191270Srwatson 136155192Srwatsonunion auditon_udata { 137155192Srwatson char *au_path; 138191270Srwatson int au_cond; 139191270Srwatson int au_flags; 140191270Srwatson int au_policy; 141155192Srwatson int au_trigger; 142191270Srwatson int64_t au_cond64; 143191270Srwatson int64_t au_policy64; 144155192Srwatson au_evclass_map_t au_evclass; 145155192Srwatson au_mask_t au_mask; 146155192Srwatson auditinfo_t au_auinfo; 147155192Srwatson auditpinfo_t au_aupinfo; 148155192Srwatson auditpinfo_addr_t au_aupinfo_addr; 149155192Srwatson au_qctrl_t au_qctrl; 150191270Srwatson au_qctrl64_t au_qctrl64; 151155192Srwatson au_stat_t au_stat; 152155192Srwatson au_fstat_t au_fstat; 153184856Scsjp auditinfo_addr_t au_kau_info; 154155192Srwatson}; 155155192Srwatson 156155192Srwatsonstruct posix_ipc_perm { 157156889Srwatson uid_t pipc_uid; 158156889Srwatson gid_t pipc_gid; 159156889Srwatson mode_t pipc_mode; 160155192Srwatson}; 161155192Srwatson 162155192Srwatsonstruct audit_record { 163155192Srwatson /* Audit record header. */ 164155192Srwatson u_int32_t ar_magic; 165155192Srwatson int ar_event; 166155192Srwatson int ar_retval; /* value returned to the process */ 167155192Srwatson int ar_errno; /* return status of system call */ 168155192Srwatson struct timespec ar_starttime; 169155192Srwatson struct timespec ar_endtime; 170155192Srwatson u_int64_t ar_valid_arg; /* Bitmask of valid arguments */ 171155192Srwatson 172155192Srwatson /* Audit subject information. */ 173156889Srwatson struct xucred ar_subj_cred; 174156889Srwatson uid_t ar_subj_ruid; 175156889Srwatson gid_t ar_subj_rgid; 176156889Srwatson gid_t ar_subj_egid; 177156889Srwatson uid_t ar_subj_auid; /* Audit user ID */ 178156889Srwatson pid_t ar_subj_asid; /* Audit session ID */ 179156889Srwatson pid_t ar_subj_pid; 180156889Srwatson struct au_tid ar_subj_term; 181168688Scsjp struct au_tid_addr ar_subj_term_addr; 182156889Srwatson struct au_mask ar_subj_amask; 183155192Srwatson 184155192Srwatson /* Operation arguments. */ 185156889Srwatson uid_t ar_arg_euid; 186156889Srwatson uid_t ar_arg_ruid; 187156889Srwatson uid_t ar_arg_suid; 188156889Srwatson gid_t ar_arg_egid; 189156889Srwatson gid_t ar_arg_rgid; 190156889Srwatson gid_t ar_arg_sgid; 191156889Srwatson pid_t ar_arg_pid; 192156889Srwatson pid_t ar_arg_asid; 193156889Srwatson struct au_tid ar_arg_termid; 194168688Scsjp struct au_tid_addr ar_arg_termid_addr; 195156889Srwatson uid_t ar_arg_uid; 196156889Srwatson uid_t ar_arg_auid; 197156889Srwatson gid_t ar_arg_gid; 198156889Srwatson struct groupset ar_arg_groups; 199156889Srwatson int ar_arg_fd; 200195925Srwatson int ar_arg_atfd1; 201195925Srwatson int ar_arg_atfd2; 202156889Srwatson int ar_arg_fflags; 203156889Srwatson mode_t ar_arg_mode; 204156889Srwatson int ar_arg_dev; 205156889Srwatson long ar_arg_value; 206246691Spjd void *ar_arg_addr; 207156889Srwatson int ar_arg_len; 208156889Srwatson int ar_arg_mask; 209156889Srwatson u_int ar_arg_signum; 210156889Srwatson char ar_arg_login[MAXLOGNAME]; 211156889Srwatson int ar_arg_ctlname[CTL_MAXNAME]; 212156889Srwatson struct socket_au_info ar_arg_sockinfo; 213156889Srwatson char *ar_arg_upath1; 214156889Srwatson char *ar_arg_upath2; 215156889Srwatson char *ar_arg_text; 216156889Srwatson struct au_mask ar_arg_amask; 217156889Srwatson struct vnode_au_info ar_arg_vnode1; 218156889Srwatson struct vnode_au_info ar_arg_vnode2; 219156889Srwatson int ar_arg_cmd; 220156889Srwatson int ar_arg_svipc_cmd; 221156889Srwatson struct ipc_perm ar_arg_svipc_perm; 222156889Srwatson int ar_arg_svipc_id; 223246691Spjd void *ar_arg_svipc_addr; 224156889Srwatson struct posix_ipc_perm ar_arg_pipc_perm; 225156889Srwatson union auditon_udata ar_arg_auditon; 226161813Swsalamon char *ar_arg_argv; 227161813Swsalamon int ar_arg_argc; 228161813Swsalamon char *ar_arg_envv; 229161813Swsalamon int ar_arg_envc; 230156889Srwatson int ar_arg_exitstatus; 231156889Srwatson int ar_arg_exitretval; 232164011Scsjp struct sockaddr_storage ar_arg_sockaddr; 233224181Sjonathan cap_rights_t ar_arg_rights; 234247602Spjd uint32_t ar_arg_fcntl_rights; 235245573Scsjp char ar_jailname[MAXHOSTNAMELEN]; 236155192Srwatson}; 237155192Srwatson 238155192Srwatson/* 239155192Srwatson * Arguments in the audit record are initially not defined; flags are set to 240155192Srwatson * indicate if they are present so they can be included in the audit log 241155192Srwatson * stream only if defined. 242155192Srwatson */ 243195939Srwatson#define ARG_EUID 0x0000000000000001ULL 244195939Srwatson#define ARG_RUID 0x0000000000000002ULL 245195939Srwatson#define ARG_SUID 0x0000000000000004ULL 246195939Srwatson#define ARG_EGID 0x0000000000000008ULL 247195939Srwatson#define ARG_RGID 0x0000000000000010ULL 248195939Srwatson#define ARG_SGID 0x0000000000000020ULL 249195939Srwatson#define ARG_PID 0x0000000000000040ULL 250195939Srwatson#define ARG_UID 0x0000000000000080ULL 251195939Srwatson#define ARG_AUID 0x0000000000000100ULL 252195939Srwatson#define ARG_GID 0x0000000000000200ULL 253195939Srwatson#define ARG_FD 0x0000000000000400ULL 254195939Srwatson#define ARG_POSIX_IPC_PERM 0x0000000000000800ULL 255195939Srwatson#define ARG_FFLAGS 0x0000000000001000ULL 256195939Srwatson#define ARG_MODE 0x0000000000002000ULL 257195939Srwatson#define ARG_DEV 0x0000000000004000ULL 258195939Srwatson#define ARG_ADDR 0x0000000000008000ULL 259195939Srwatson#define ARG_LEN 0x0000000000010000ULL 260195939Srwatson#define ARG_MASK 0x0000000000020000ULL 261195939Srwatson#define ARG_SIGNUM 0x0000000000040000ULL 262195939Srwatson#define ARG_LOGIN 0x0000000000080000ULL 263195939Srwatson#define ARG_SADDRINET 0x0000000000100000ULL 264195939Srwatson#define ARG_SADDRINET6 0x0000000000200000ULL 265195939Srwatson#define ARG_SADDRUNIX 0x0000000000400000ULL 266195939Srwatson#define ARG_TERMID_ADDR 0x0000000000400000ULL 267195939Srwatson#define ARG_UNUSED2 0x0000000001000000ULL 268195939Srwatson#define ARG_UPATH1 0x0000000002000000ULL 269195939Srwatson#define ARG_UPATH2 0x0000000004000000ULL 270195939Srwatson#define ARG_TEXT 0x0000000008000000ULL 271195939Srwatson#define ARG_VNODE1 0x0000000010000000ULL 272195939Srwatson#define ARG_VNODE2 0x0000000020000000ULL 273195939Srwatson#define ARG_SVIPC_CMD 0x0000000040000000ULL 274195939Srwatson#define ARG_SVIPC_PERM 0x0000000080000000ULL 275195939Srwatson#define ARG_SVIPC_ID 0x0000000100000000ULL 276195939Srwatson#define ARG_SVIPC_ADDR 0x0000000200000000ULL 277195939Srwatson#define ARG_GROUPSET 0x0000000400000000ULL 278195939Srwatson#define ARG_CMD 0x0000000800000000ULL 279195939Srwatson#define ARG_SOCKINFO 0x0000001000000000ULL 280195939Srwatson#define ARG_ASID 0x0000002000000000ULL 281195939Srwatson#define ARG_TERMID 0x0000004000000000ULL 282195939Srwatson#define ARG_AUDITON 0x0000008000000000ULL 283195939Srwatson#define ARG_VALUE 0x0000010000000000ULL 284195939Srwatson#define ARG_AMASK 0x0000020000000000ULL 285195939Srwatson#define ARG_CTLNAME 0x0000040000000000ULL 286195939Srwatson#define ARG_PROCESS 0x0000080000000000ULL 287195939Srwatson#define ARG_MACHPORT1 0x0000100000000000ULL 288195939Srwatson#define ARG_MACHPORT2 0x0000200000000000ULL 289195939Srwatson#define ARG_EXIT 0x0000400000000000ULL 290195939Srwatson#define ARG_IOVECSTR 0x0000800000000000ULL 291195939Srwatson#define ARG_ARGV 0x0001000000000000ULL 292195939Srwatson#define ARG_ENVV 0x0002000000000000ULL 293195939Srwatson#define ARG_ATFD1 0x0004000000000000ULL 294195939Srwatson#define ARG_ATFD2 0x0008000000000000ULL 295224181Sjonathan#define ARG_RIGHTS 0x0010000000000000ULL 296247602Spjd#define ARG_FCNTL_RIGHTS 0x0020000000000000ULL 297195939Srwatson#define ARG_NONE 0x0000000000000000ULL 298195939Srwatson#define ARG_ALL 0xFFFFFFFFFFFFFFFFULL 299195939Srwatson 300155192Srwatson#define ARG_IS_VALID(kar, arg) ((kar)->k_ar.ar_valid_arg & (arg)) 301155192Srwatson#define ARG_SET_VALID(kar, arg) do { \ 302155192Srwatson (kar)->k_ar.ar_valid_arg |= (arg); \ 303155192Srwatson} while (0) 304195926Srwatson#define ARG_CLEAR_VALID(kar, arg) do { \ 305195926Srwatson (kar)->k_ar.ar_valid_arg &= ~(arg); \ 306195926Srwatson} while (0) 307155192Srwatson 308155192Srwatson/* 309155192Srwatson * In-kernel version of audit record; the basic record plus queue meta-data. 310156889Srwatson * This record can also have a pointer set to some opaque data that will be 311156889Srwatson * passed through to the audit writing mechanism. 312155192Srwatson */ 313155192Srwatsonstruct kaudit_record { 314156889Srwatson struct audit_record k_ar; 315156889Srwatson u_int32_t k_ar_commit; 316156889Srwatson void *k_udata; /* User data. */ 317156889Srwatson u_int k_ulen; /* User data length. */ 318156889Srwatson struct uthread *k_uthread; /* Audited thread. */ 319156889Srwatson TAILQ_ENTRY(kaudit_record) k_q; 320155192Srwatson}; 321156888SrwatsonTAILQ_HEAD(kaudit_queue, kaudit_record); 322155192Srwatson 323155192Srwatson/* 324155192Srwatson * Functions to manage the allocation, release, and commit of kernel audit 325155192Srwatson * records. 326155192Srwatson */ 327155192Srwatsonvoid audit_abort(struct kaudit_record *ar); 328156888Srwatsonvoid audit_commit(struct kaudit_record *ar, int error, 329155192Srwatson int retval); 330155192Srwatsonstruct kaudit_record *audit_new(int event, struct thread *td); 331155192Srwatson 332155192Srwatson/* 333155192Srwatson * Functions relating to the conversion of internal kernel audit records to 334155192Srwatson * the BSM file format. 335155192Srwatson */ 336156291Srwatsonstruct au_record; 337156889Srwatsonint kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau); 338156889Srwatsonint bsm_rec_verify(void *rec); 339155192Srwatson 340155192Srwatson/* 341155192Srwatson * Kernel versions of the libbsm audit record functions. 342155192Srwatson */ 343156889Srwatsonvoid kau_free(struct au_record *rec); 344156889Srwatsonvoid kau_init(void); 345155192Srwatson 346155192Srwatson/* 347155192Srwatson * Return values for pre-selection and post-selection decisions. 348155192Srwatson */ 349156889Srwatson#define AU_PRS_SUCCESS 1 350156889Srwatson#define AU_PRS_FAILURE 2 351156889Srwatson#define AU_PRS_BOTH (AU_PRS_SUCCESS|AU_PRS_FAILURE) 352155192Srwatson 353156888Srwatson/* 354156888Srwatson * Data structures relating to the kernel audit queue. Ideally, these might 355156888Srwatson * be abstracted so that only accessor methods are exposed. 356156888Srwatson */ 357156889Srwatsonextern struct mtx audit_mtx; 358159261Srwatsonextern struct cv audit_watermark_cv; 359159261Srwatsonextern struct cv audit_worker_cv; 360156889Srwatsonextern struct kaudit_queue audit_q; 361191270Srwatsonextern int audit_q_len; 362191270Srwatsonextern int audit_pre_q_len; 363156889Srwatsonextern int audit_in_failure; 364156888Srwatson 365156888Srwatson/* 366155192Srwatson * Flags to use on audit files when opening and closing. 367155192Srwatson */ 368155192Srwatson#define AUDIT_OPEN_FLAGS (FWRITE | O_APPEND) 369155192Srwatson#define AUDIT_CLOSE_FLAGS (FWRITE | O_APPEND) 370155192Srwatson 371155192Srwatson#include <sys/fcntl.h> 372155192Srwatson#include <sys/kernel.h> 373155192Srwatson#include <sys/malloc.h> 374155192Srwatson 375155192Srwatson/* 376155192Srwatson * Some of the BSM tokenizer functions take different parameters in the 377156889Srwatson * kernel implementations in order to save the copying of large kernel data 378170196Srwatson * structures. The prototypes of these functions are declared here. 379155192Srwatson */ 380155192Srwatsontoken_t *kau_to_socket(struct socket_au_info *soi); 381155192Srwatson 382155192Srwatson/* 383155192Srwatson * audit_klib prototypes 384155192Srwatson */ 385159269Srwatsonint au_preselect(au_event_t event, au_class_t class, 386159269Srwatson au_mask_t *mask_p, int sorf); 387155192Srwatsonvoid au_evclassmap_init(void); 388155192Srwatsonvoid au_evclassmap_insert(au_event_t event, au_class_t class); 389155192Srwatsonau_class_t au_event_class(au_event_t event); 390176690Srwatsonau_event_t audit_ctlname_to_sysctlevent(int name[], uint64_t valid_arg); 391176690Srwatsonau_event_t audit_flags_and_error_to_openevent(int oflags, int error); 392195925Srwatsonau_event_t audit_flags_and_error_to_openatevent(int oflags, int error); 393188313Srwatsonau_event_t audit_msgctl_to_event(int cmd); 394188313Srwatsonau_event_t audit_semctl_to_event(int cmr); 395243726Spjdvoid audit_canon_path(struct thread *td, int dirfd, char *path, 396243726Spjd char *cpath); 397188313Srwatsonau_event_t auditon_command_event(int cmd); 398155192Srwatson 399155192Srwatson/* 400155192Srwatson * Audit trigger events notify user space of kernel audit conditions 401155192Srwatson * asynchronously. 402155192Srwatson */ 403155192Srwatsonvoid audit_trigger_init(void); 404176686Srwatsonint audit_send_trigger(unsigned int trigger); 405155192Srwatson 406155192Srwatson/* 407184858Srwatson * Accessor functions to manage global audit state. 408184858Srwatson */ 409184858Srwatsonvoid audit_set_kinfo(struct auditinfo_addr *); 410184858Srwatsonvoid audit_get_kinfo(struct auditinfo_addr *); 411184858Srwatson 412184858Srwatson/* 413155192Srwatson * General audit related functions. 414155192Srwatson */ 415155192Srwatsonstruct kaudit_record *currecord(void); 416156888Srwatsonvoid audit_free(struct kaudit_record *ar); 417155192Srwatsonvoid audit_shutdown(void *arg, int howto); 418155192Srwatsonvoid audit_rotate_vnode(struct ucred *cred, 419155192Srwatson struct vnode *vp); 420156888Srwatsonvoid audit_worker_init(void); 421155192Srwatson 422155408Srwatson/* 423155408Srwatson * Audit pipe functions. 424155408Srwatson */ 425159269Srwatsonint audit_pipe_preselect(au_id_t auid, au_event_t event, 426159269Srwatson au_class_t class, int sorf, int trail_select); 427159269Srwatsonvoid audit_pipe_submit(au_id_t auid, au_event_t event, au_class_t class, 428159269Srwatson int sorf, int trail_select, void *record, u_int record_len); 429159269Srwatsonvoid audit_pipe_submit_user(void *record, u_int record_len); 430155408Srwatson 431156882Srwatson#endif /* ! _SECURITY_AUDIT_PRIVATE_H_ */ 432