dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / auditreduce / auditrd.h
blob334741d152a4dce38dd1d519a652a54d8d2efebf
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #ifndef _AUDITRD_H
27 #define _AUDITRD_H
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
34 * Global data for auditreduce
38 * Message selection options
40 unsigned short m_type; /* 'm' message type */
41 gid_t m_groupr; /* 'g' group-id */
42 gid_t m_groupe; /* 'f' effective group-id */
43 uid_t m_usera; /* 'u' user id */
44 uid_t m_usere; /* 'e' effective user-id */
45 uid_t m_userr; /* 'r' real user-id */
46 au_asid_t m_sid; /* 's' session-id */
47 time_t m_after; /* 'a' after a time */
48 time_t m_before; /* 'b' before a time */
49 audit_state_t mask; /* used with m_class */
50 char *zonename; /* 'z' zonename */
51 int flags;
52 int checkflags;
53 int socket_flag;
54 int ip_type;
55 uchar_t ip_ipv6[16]; /* ipv6 type object */
56 int obj_flag; /* 'o' object type */
57 int obj_id; /* object identifier */
58 gid_t obj_group; /* object group */
59 uid_t obj_owner; /* object owner */
60 int subj_id; /* subject identifier */
61 char ipc_type; /* 'o' object type - tell what type of IPC */
62 scf_pattern_t fmri; /* 'o' fmri value */
63 uid_t obj_user; /* 'o' user value */
66 * File selection options
68 char *f_machine; /* 'M' machine (suffix) type */
69 char *f_root; /* 'R' audit root */
70 char *f_server; /* 'S' server */
71 char *f_outfile; /* 'W' output file */
72 static char *f_outtemp; /* 'W' temporary file name */
73 int f_all; /* 'A' all records from a file */
74 int f_complete; /* 'C' only completed files */
75 int f_delete; /* 'D' delete when done */
76 int f_quiet; /* 'Q' sshhhh! */
77 int f_verbose; /* 'V' verbose */
78 int f_stdin; /* '-' read from stdin */
79 int f_cmdline; /* files specified on the command line */
80 int new_mode; /* 'N' new object selection mode */
83 * Global error reporting
85 char *error_str; /* current error message */
86 char errbuf[256]; /* for creating error messages with sprintf */
87 char *ar = "auditreduce:";
88 static int root_pid; /* remember original process's pid */
91 * Global control blocks
93 audit_pcb_t *audit_pcbs; /* ptr to array of pcbs that hold files (fcbs) */
95 int pcbsize; /* size of audit_pcb[] */
96 int pcbnum; /* number of pcbs in audit_pcb[] that are active */
99 * Time values
101 time_t f_start; /* time of first record written */
102 time_t f_end; /* time of last record written */
103 time_t time_now; /* time the program began */
106 * Global counting vars
108 int filenum; /* number of files to process */
111 * Global variable, class of current record being processed.
113 int global_class;
115 #ifdef __cplusplus
117 #endif
119 #endif /* _AUDITRD_H */