2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1993, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A/* Private Functions */ 2N/A/* Global Variables */ 2N/Astatic int aug_na;
/* 0 if event is attributable */ 2N/Astatic int aug_sorf;
/* success or failure of aug_event */ 2N/Astatic char *
aug_text;
/* misc text to be written to trail */ 2N/Astatic char *
aug_text1;
/* misc text to be written to trail */ 2N/Astatic char *
aug_text2;
/* misc text to be written to trail */ 2N/Astatic int (*
aug_afunc)();
/* write additional tokens if needed */ 2N/A * Return 1 if audit module not loaded. 2N/A * Return 0 otherwise. 2N/A * The argument, force, should be set to 1 for long-lived processes 2N/A * like some daemons. Force should be set to 0 for most programs. 2N/A * Initialize global variables. 2N/A * Return the raw device number of the port to which the 2N/A * current process is attached (assumed to be attached 2N/A * through file descriptor 0) or 0 if can't stat the port. 2N/A * Return internet address of host hostname, 2N/A * or 0 if can't do lookup. 2N/A * aug_save_namask(): 2N/A * Save the namask using the naflags entry in the audit_control file. 2N/A * Return 0 if successful. 2N/A * Return -1, and don't change the namask, if failed. 2N/A * Side Effect: Sets aug_na to -1 if error, 1 if successful. 2N/A * get non-attributable system event mask from kernel. 2N/A * Cut and audit record if it is selected. 2N/A * Return 0, if successfully written. 2N/A * Return 0, if not written, and not expected to write. 2N/A * Return -1, if not written because of unexpected error.