audit_start.c revision 134a1f4e3289b54e0f980e9cf05352e419a60bee
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * CDDL HEADER START
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * The contents of this file are subject to the terms of the
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * Common Development and Distribution License (the "License").
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * You may not use this file except in compliance with the License.
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * or http://www.opensolaris.org/os/licensing.
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * See the License for the specific language governing permissions
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * and limitations under the License.
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * When distributing Covered Code, include this CDDL HEADER in each
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * If applicable, add the following below this CDDL HEADER, with the
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * fields enclosed by brackets "[]" replaced with your own identifying
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * information: Portions Copyright [yyyy] [name of copyright owner]
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * CDDL HEADER END
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
275c6188235928b3dd559604a86f4bac24bf685eAndreas Gustafsson * This file contains the envelope code for system call auditing.
#include "audit_door_infc.h"
int audit_load = 0;
au_mem_init();
unsigned type,
unsigned scid,
int error,
if (error) {
* audit_start will be called again from indir() in trap.c
if (scid == 0) {
scid = 0;
(void) save_syscall_args();
unsigned type,
unsigned scid,
int error,
int flag;
unsigned int sy_flags;
AUT_UPRIV, 0));
#ifdef _SYSCALL32_IMPL
sy_flags =
if (type == 0) {
if (type == 0) {
if (type == 0) {
NULL);
if (error)
return (AU_OK);
if (error == 0)
int flag = 0;
return (flag);