auditrd.h revision 924c9144ce09475b72695d4f01dae8d8970412bd
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _AUDITRD_H
#define _AUDITRD_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Global data for auditreduce
*/
/*
* Message selection options
*/
unsigned short m_type; /* 'm' message type */
char *zonename; /* 'z' zonename */
#ifdef TSOL
#endif /* TSOL */
int flags;
int checkflags;
int socket_flag;
int ip_type;
int obj_flag; /* 'o' object type */
int obj_id; /* object identifier */
int subj_id; /* subject identifier */
char ipc_type; /* 'o' object type - tell what type of IPC */
/*
* File selection options
*/
char *f_machine; /* 'M' machine (suffix) type */
char *f_root; /* 'R' audit root */
char *f_server; /* 'S' server */
char *f_outfile; /* 'W' output file */
static char *f_outtemp; /* 'W' temporary file name */
int f_all; /* 'A' all records from a file */
int f_complete; /* 'C' only completed files */
int f_delete; /* 'D' delete when done */
int f_quiet; /* 'Q' sshhhh! */
int f_verbose; /* 'V' verbose */
int f_stdin; /* '-' read from stdin */
int f_cmdline; /* files specified on the command line */
int new_mode; /* 'N' new object selection mode */
/*
* Global error reporting
*/
char *error_str; /* current error message */
char *ar = "auditreduce:";
static int root_pid; /* remember original process's pid */
/*
* Global control blocks
*/
int pcbsize; /* size of audit_pcb[] */
int pcbnum; /* number of pcbs in audit_pcb[] that are active */
/*
* Time values
*/
/*
* Global counting vars
*/
int filenum; /* number of files to process */
/*
* Global variable, class of current record being processed.
*/
int global_class;
#ifdef __cplusplus
}
#endif
#endif /* _AUDITRD_H */