xref: /titanic_53/usr/src/cmd/praudit/toktable.c (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate  */
26*7c478bd9Sstevel@tonic-gate 
27*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
28*7c478bd9Sstevel@tonic-gate 
29*7c478bd9Sstevel@tonic-gate /*
30*7c478bd9Sstevel@tonic-gate  * Solaris Audit Token Table.
31*7c478bd9Sstevel@tonic-gate  */
32*7c478bd9Sstevel@tonic-gate 
33*7c478bd9Sstevel@tonic-gate #include <locale.h>
34*7c478bd9Sstevel@tonic-gate 
35*7c478bd9Sstevel@tonic-gate #include <stdio.h>
36*7c478bd9Sstevel@tonic-gate #include <stdlib.h>
37*7c478bd9Sstevel@tonic-gate #include <string.h>
38*7c478bd9Sstevel@tonic-gate #include <bsm/audit.h>
39*7c478bd9Sstevel@tonic-gate #include <bsm/audit_record.h>
40*7c478bd9Sstevel@tonic-gate #include <bsm/libbsm.h>
41*7c478bd9Sstevel@tonic-gate 
42*7c478bd9Sstevel@tonic-gate #include "praudit.h"
43*7c478bd9Sstevel@tonic-gate #include "toktable.h"
44*7c478bd9Sstevel@tonic-gate 
45*7c478bd9Sstevel@tonic-gate token_desc_t tokentable[MAXTAG + 1];
46*7c478bd9Sstevel@tonic-gate 
47*7c478bd9Sstevel@tonic-gate #define	table_init(i, n, f, t) \
48*7c478bd9Sstevel@tonic-gate 	tokentable[(int)(i)].t_name = (n); \
49*7c478bd9Sstevel@tonic-gate 	tokentable[(int)(i)].t_tagname = (n); \
50*7c478bd9Sstevel@tonic-gate 	tokentable[(int)(i)].func = (f); \
51*7c478bd9Sstevel@tonic-gate 	tokentable[(int)(i)].t_type = (t);
52*7c478bd9Sstevel@tonic-gate 
53*7c478bd9Sstevel@tonic-gate /* table_initx is for entries which need name different from tagname */
54*7c478bd9Sstevel@tonic-gate #define	table_initx(i, n, tn, f, t) \
55*7c478bd9Sstevel@tonic-gate 	tokentable[(int)(i)].t_name = (n); \
56*7c478bd9Sstevel@tonic-gate 	tokentable[(int)(i)].t_tagname = (tn); \
57*7c478bd9Sstevel@tonic-gate 	tokentable[(int)(i)].func = (f); \
58*7c478bd9Sstevel@tonic-gate 	tokentable[(int)(i)].t_type = (t);
59*7c478bd9Sstevel@tonic-gate 
60*7c478bd9Sstevel@tonic-gate /*
61*7c478bd9Sstevel@tonic-gate  * Initialize the table of tokens & other tags.
62*7c478bd9Sstevel@tonic-gate  */
63*7c478bd9Sstevel@tonic-gate void
64*7c478bd9Sstevel@tonic-gate init_tokens(void)
65*7c478bd9Sstevel@tonic-gate {
66*7c478bd9Sstevel@tonic-gate 	/*
67*7c478bd9Sstevel@tonic-gate 	 * TRANSLATION_NOTE
68*7c478bd9Sstevel@tonic-gate 	 * These names refer to different type of audit tokens.
69*7c478bd9Sstevel@tonic-gate 	 * To gain a better understanding of each token, read the
70*7c478bd9Sstevel@tonic-gate 	 * SunShield BSM Guide, part no. 802-1965-xx.
71*7c478bd9Sstevel@tonic-gate 	 */
72*7c478bd9Sstevel@tonic-gate 
73*7c478bd9Sstevel@tonic-gate 	(void) gettext("file");	/* to force out the translation note */
74*7c478bd9Sstevel@tonic-gate 
75*7c478bd9Sstevel@tonic-gate 	/*
76*7c478bd9Sstevel@tonic-gate 	 * Control token types
77*7c478bd9Sstevel@tonic-gate 	 */
78*7c478bd9Sstevel@tonic-gate 
79*7c478bd9Sstevel@tonic-gate 	table_init(AUT_INVALID, (char *)0, NOFUNC, T_UNKNOWN);
80*7c478bd9Sstevel@tonic-gate 	table_init(AUT_OTHER_FILE32, "file", file_token, T_EXTENDED);
81*7c478bd9Sstevel@tonic-gate 	table_init(AUT_OHEADER, "old_header", NOFUNC, T_EXTENDED);
82*7c478bd9Sstevel@tonic-gate 	table_init(AUT_TRAILER, "trailer", trailer_token, T_UNKNOWN);
83*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_HEADER32, "header", "record",
84*7c478bd9Sstevel@tonic-gate 	    header_token, T_EXTENDED);
85*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_HEADER32_EX, "header", "record",
86*7c478bd9Sstevel@tonic-gate 	    header32_ex_token, T_EXTENDED);
87*7c478bd9Sstevel@tonic-gate 
88*7c478bd9Sstevel@tonic-gate 	/*
89*7c478bd9Sstevel@tonic-gate 	 * Data token types
90*7c478bd9Sstevel@tonic-gate 	 */
91*7c478bd9Sstevel@tonic-gate 
92*7c478bd9Sstevel@tonic-gate 	table_init(AUT_DATA, "arbitrary", arbitrary_data_token, T_EXTENDED);
93*7c478bd9Sstevel@tonic-gate 	table_init(AUT_IPC, "IPC", s5_IPC_token, T_ENCLOSED);
94*7c478bd9Sstevel@tonic-gate 	table_init(AUT_PATH, "path", path_token, T_ELEMENT);
95*7c478bd9Sstevel@tonic-gate 	table_init(AUT_XATPATH, "path_attr", path_attr_token, T_ELEMENT);
96*7c478bd9Sstevel@tonic-gate 	table_init(AUT_SUBJECT32, "subject", subject32_token, T_ENCLOSED);
97*7c478bd9Sstevel@tonic-gate 	table_init(AUT_PROCESS32, "process", process32_token, T_ENCLOSED);
98*7c478bd9Sstevel@tonic-gate 	table_init(AUT_RETURN32, "return", return_value32_token, T_ENCLOSED);
99*7c478bd9Sstevel@tonic-gate 	table_init(AUT_TEXT, "text", text_token, T_ELEMENT);
100*7c478bd9Sstevel@tonic-gate 	table_init(AUT_OPAQUE, "opaque", opaque_token, T_ELEMENT);
101*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_IN_ADDR, "ip address", "ip_address",
102*7c478bd9Sstevel@tonic-gate 	    ip_addr_token, T_ELEMENT);
103*7c478bd9Sstevel@tonic-gate 	table_init(AUT_IP, "ip", ip_token, T_ENCLOSED);
104*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_IPORT, "ip port", "ip_port",
105*7c478bd9Sstevel@tonic-gate 	    iport_token, T_ELEMENT);
106*7c478bd9Sstevel@tonic-gate 	table_init(AUT_ARG32, "argument", argument32_token, T_ENCLOSED);
107*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_SOCKET, "socket", "old_socket",
108*7c478bd9Sstevel@tonic-gate 	    socket_token, T_ENCLOSED);
109*7c478bd9Sstevel@tonic-gate 	table_init(AUT_SEQ, "sequence", sequence_token, T_ENCLOSED);
110*7c478bd9Sstevel@tonic-gate 	table_init(AUT_ZONENAME, "zone", zonename_token, T_ENCLOSED);
111*7c478bd9Sstevel@tonic-gate 
112*7c478bd9Sstevel@tonic-gate 	/*
113*7c478bd9Sstevel@tonic-gate 	 * Modifier token types
114*7c478bd9Sstevel@tonic-gate 	 */
115*7c478bd9Sstevel@tonic-gate 
116*7c478bd9Sstevel@tonic-gate 	table_init(AUT_ACL, "acl", acl_token, T_ENCLOSED);
117*7c478bd9Sstevel@tonic-gate 	table_init(AUT_ATTR, "attribute", attribute_token, T_ENCLOSED);
118*7c478bd9Sstevel@tonic-gate 	table_init(AUT_IPC_PERM, "IPC_perm", s5_IPC_perm_token, T_ENCLOSED);
119*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_LABEL, "cmw label", "cmw_label",
120*7c478bd9Sstevel@tonic-gate 	    NOFUNC, T_UNKNOWN);
121*7c478bd9Sstevel@tonic-gate 	table_init(AUT_GROUPS, "group", group_token, T_ELEMENT);
122*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_ILABEL, "information label", "information_label",
123*7c478bd9Sstevel@tonic-gate 	    ilabel_token, T_ELEMENT);
124*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_SLABEL, "sensitivity label", "sensitivity_label",
125*7c478bd9Sstevel@tonic-gate 	    slabel_token, T_ELEMENT);
126*7c478bd9Sstevel@tonic-gate 	table_init(AUT_CLEAR, "clearance", clearance_token, T_ELEMENT);
127*7c478bd9Sstevel@tonic-gate 	table_init(AUT_PRIV, "privilege", privilege_token, T_EXTENDED);
128*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_UPRIV, "use of privilege", "use_of_privilege",
129*7c478bd9Sstevel@tonic-gate 	    useofpriv_token, T_EXTENDED);
130*7c478bd9Sstevel@tonic-gate 	table_init(AUT_LIAISON, "liaison", liaison_token, T_ELEMENT);
131*7c478bd9Sstevel@tonic-gate 	table_init(AUT_NEWGROUPS, "group", newgroup_token, T_ELEMENT);
132*7c478bd9Sstevel@tonic-gate 	table_init(AUT_EXEC_ARGS, "exec_args", exec_args_token, T_ELEMENT);
133*7c478bd9Sstevel@tonic-gate 	table_init(AUT_EXEC_ENV, "exec_env", exec_env_token, T_ELEMENT);
134*7c478bd9Sstevel@tonic-gate 	table_init(AUT_ATTR32, "attribute", attribute32_token, T_ENCLOSED);
135*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_UAUTH, "use of authorization",
136*7c478bd9Sstevel@tonic-gate 	    "use_of_authorization", useofauth_token, T_ELEMENT);
137*7c478bd9Sstevel@tonic-gate 	table_init(AUT_TID, "tid", tid_token, T_EXTENDED);
138*7c478bd9Sstevel@tonic-gate 
139*7c478bd9Sstevel@tonic-gate 	/*
140*7c478bd9Sstevel@tonic-gate 	 * X windows token types
141*7c478bd9Sstevel@tonic-gate 	 */
142*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XATOM, "X atom", "X_atom", xatom_token, T_ELEMENT);
143*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XOBJ, "X object", "X_object", NOFUNC, T_UNKNOWN);
144*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XPROTO, "X protocol", "X_protocol", NOFUNC, T_UNKNOWN);
145*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XSELECT, "X selection", "X_selection",
146*7c478bd9Sstevel@tonic-gate 	    xselect_token, T_ELEMENT);
147*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XCOLORMAP, "X color map", "X_color_map",
148*7c478bd9Sstevel@tonic-gate 	    xcolormap_token, T_ENCLOSED);
149*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XCURSOR, "X cursor", "X_cursor",
150*7c478bd9Sstevel@tonic-gate 	    xcursor_token, T_ENCLOSED);
151*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XFONT, "X font", "X_font", xfont_token, T_ENCLOSED);
152*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XGC, "X graphic context", "X_graphic_context",
153*7c478bd9Sstevel@tonic-gate 	    xgc_token, T_ENCLOSED);
154*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XPIXMAP, "X pixmap", "X_pixmap",
155*7c478bd9Sstevel@tonic-gate 	    xpixmap_token, T_ENCLOSED);
156*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XPROPERTY, "X property", "X_property",
157*7c478bd9Sstevel@tonic-gate 	    xproperty_token, T_EXTENDED);
158*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XWINDOW, "X window", "X_window",
159*7c478bd9Sstevel@tonic-gate 	    xwindow_token, T_ENCLOSED);
160*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_XCLIENT, "X client", "X_client",
161*7c478bd9Sstevel@tonic-gate 	    xclient_token, T_ELEMENT);
162*7c478bd9Sstevel@tonic-gate 
163*7c478bd9Sstevel@tonic-gate 	/*
164*7c478bd9Sstevel@tonic-gate 	 * Command token types
165*7c478bd9Sstevel@tonic-gate 	 */
166*7c478bd9Sstevel@tonic-gate 
167*7c478bd9Sstevel@tonic-gate 	table_init(AUT_CMD, "cmd", cmd_token, T_ELEMENT);
168*7c478bd9Sstevel@tonic-gate 	table_init(AUT_EXIT, "exit", exit_token, T_ENCLOSED);
169*7c478bd9Sstevel@tonic-gate 
170*7c478bd9Sstevel@tonic-gate 	/*
171*7c478bd9Sstevel@tonic-gate 	 * Miscellaneous token types
172*7c478bd9Sstevel@tonic-gate 	 */
173*7c478bd9Sstevel@tonic-gate 
174*7c478bd9Sstevel@tonic-gate 	table_init(AUT_HOST, "host", host_token, T_ELEMENT);
175*7c478bd9Sstevel@tonic-gate 
176*7c478bd9Sstevel@tonic-gate 	/*
177*7c478bd9Sstevel@tonic-gate 	 * Solaris64 token types
178*7c478bd9Sstevel@tonic-gate 	 */
179*7c478bd9Sstevel@tonic-gate 
180*7c478bd9Sstevel@tonic-gate 	table_init(AUT_ARG64, "argument", argument64_token, T_ENCLOSED);
181*7c478bd9Sstevel@tonic-gate 	table_init(AUT_RETURN64, "return", return_value64_token, T_ENCLOSED);
182*7c478bd9Sstevel@tonic-gate 	table_init(AUT_ATTR64, "attribute", attribute64_token, T_ENCLOSED);
183*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_HEADER64, "header", "record",
184*7c478bd9Sstevel@tonic-gate 	    header64_token, T_EXTENDED);
185*7c478bd9Sstevel@tonic-gate 	table_init(AUT_SUBJECT64, "subject", subject64_token, T_ENCLOSED);
186*7c478bd9Sstevel@tonic-gate 	table_init(AUT_PROCESS64, "process", process64_token, T_ENCLOSED);
187*7c478bd9Sstevel@tonic-gate 	table_init(AUT_OTHER_FILE64, "file", file64_token, T_EXTENDED);
188*7c478bd9Sstevel@tonic-gate 
189*7c478bd9Sstevel@tonic-gate 	/*
190*7c478bd9Sstevel@tonic-gate 	 * Extended network address token types
191*7c478bd9Sstevel@tonic-gate 	 */
192*7c478bd9Sstevel@tonic-gate 
193*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_HEADER64_EX, "header", "record",
194*7c478bd9Sstevel@tonic-gate 	    header64_ex_token, T_EXTENDED);
195*7c478bd9Sstevel@tonic-gate 	table_init(AUT_SUBJECT32_EX, "subject", subject32_ex_token, T_ENCLOSED);
196*7c478bd9Sstevel@tonic-gate 	table_init(AUT_PROCESS32_EX, "process", process32_ex_token, T_ENCLOSED);
197*7c478bd9Sstevel@tonic-gate 	table_init(AUT_SUBJECT64_EX, "subject", subject64_ex_token, T_ENCLOSED);
198*7c478bd9Sstevel@tonic-gate 	table_init(AUT_PROCESS64_EX, "process", process64_ex_token, T_ENCLOSED);
199*7c478bd9Sstevel@tonic-gate 	table_initx(AUT_IN_ADDR_EX, "ip address", "ip_address",
200*7c478bd9Sstevel@tonic-gate 	    ip_addr_ex_token, T_ELEMENT);
201*7c478bd9Sstevel@tonic-gate 	table_init(AUT_SOCKET_EX, "socket", socket_ex_token, T_ENCLOSED);
202*7c478bd9Sstevel@tonic-gate 
203*7c478bd9Sstevel@tonic-gate #ifdef _PRAUDIT
204*7c478bd9Sstevel@tonic-gate 	/*
205*7c478bd9Sstevel@tonic-gate 	 * Done with tokens above here. Now do remaining tags.
206*7c478bd9Sstevel@tonic-gate 	 */
207*7c478bd9Sstevel@tonic-gate 	table_init(TAG_AUID, "audit-uid", pa_pw_uid, T_ATTRIBUTE);
208*7c478bd9Sstevel@tonic-gate 	table_init(TAG_UID, "uid", pa_pw_uid, T_ATTRIBUTE);
209*7c478bd9Sstevel@tonic-gate 	table_init(TAG_GID, "gid", pa_gr_uid, T_ATTRIBUTE);
210*7c478bd9Sstevel@tonic-gate 	table_init(TAG_RUID, "ruid", pa_pw_uid, T_ATTRIBUTE);
211*7c478bd9Sstevel@tonic-gate 	table_init(TAG_RGID, "rgid", pa_gr_uid, T_ATTRIBUTE);
212*7c478bd9Sstevel@tonic-gate 
213*7c478bd9Sstevel@tonic-gate 	table_init(TAG_PID, "pid", pa_adr_u_int32, T_ATTRIBUTE);
214*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SID, "sid", pa_adr_u_int32, T_ATTRIBUTE);
215*7c478bd9Sstevel@tonic-gate 
216*7c478bd9Sstevel@tonic-gate 	table_init(TAG_TID32, "tid", pa_tid32, T_ATTRIBUTE);
217*7c478bd9Sstevel@tonic-gate 	table_init(TAG_TID64, "tid", pa_tid64, T_ATTRIBUTE);
218*7c478bd9Sstevel@tonic-gate 	table_init(TAG_TID32_EX, "tid", pa_tid32_ex, T_ATTRIBUTE);
219*7c478bd9Sstevel@tonic-gate 	table_init(TAG_TID64_EX, "tid", pa_tid64_ex, T_ATTRIBUTE);
220*7c478bd9Sstevel@tonic-gate 	table_init(TAG_TID_TYPE, "type", NOFUNC, T_ATTRIBUTE);
221*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IP, "ipadr", NOFUNC, T_ENCLOSED);
222*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IP_LOCAL, "local-port", pa_adr_u_short, T_ATTRIBUTE);
223*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IP_REMOTE, "remote-port", pa_adr_u_short, T_ATTRIBUTE);
224*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IP_ADR, "host", pa_ip_addr, T_ATTRIBUTE);
225*7c478bd9Sstevel@tonic-gate 
226*7c478bd9Sstevel@tonic-gate 	table_initx(TAG_EVMOD, "event-modifier", "modifier",
227*7c478bd9Sstevel@tonic-gate 	    pa_event_modifier, T_ATTRIBUTE);
228*7c478bd9Sstevel@tonic-gate 	table_initx(TAG_EVTYPE, "event-type", "event",
229*7c478bd9Sstevel@tonic-gate 	    pa_event_type, T_ATTRIBUTE);
230*7c478bd9Sstevel@tonic-gate 	table_initx(TAG_TOKVERS, "token-version", "version",
231*7c478bd9Sstevel@tonic-gate 	    pa_adr_byte, T_ATTRIBUTE);
232*7c478bd9Sstevel@tonic-gate 
233*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ISO, "iso8601", NOFUNC, T_ATTRIBUTE);
234*7c478bd9Sstevel@tonic-gate 
235*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ERRVAL, "errval", NOFUNC, T_ATTRIBUTE);
236*7c478bd9Sstevel@tonic-gate 	table_init(TAG_RETVAL, "retval", pa_adr_int32, T_ATTRIBUTE);
237*7c478bd9Sstevel@tonic-gate 
238*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SETTYPE, "set-type", pa_adr_string, T_ATTRIBUTE);
239*7c478bd9Sstevel@tonic-gate 	/* Sub-element of groups & newgroups token: */
240*7c478bd9Sstevel@tonic-gate 	table_init(TAG_GROUPID, "gid", pa_gr_uid, T_ELEMENT);
241*7c478bd9Sstevel@tonic-gate 
242*7c478bd9Sstevel@tonic-gate 	table_init(TAG_XID, "xid", pa_xid, T_ATTRIBUTE);
243*7c478bd9Sstevel@tonic-gate 	table_init(TAG_XCUID, "xcreator-uid", pa_pw_uid, T_ATTRIBUTE);
244*7c478bd9Sstevel@tonic-gate 
245*7c478bd9Sstevel@tonic-gate 	table_init(TAG_XSELTEXT, "x_sel_text", pa_adr_string, T_ELEMENT);
246*7c478bd9Sstevel@tonic-gate 	table_init(TAG_XSELTYPE, "x_sel_type", pa_adr_string, T_ELEMENT);
247*7c478bd9Sstevel@tonic-gate 	table_init(TAG_XSELDATA, "x_sel_data", pa_adr_string, T_ELEMENT);
248*7c478bd9Sstevel@tonic-gate 
249*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARGNUM, "arg-num", pa_adr_byte, T_ATTRIBUTE);
250*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARGVAL32, "value", pa_adr_int32hex, T_ATTRIBUTE);
251*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARGVAL64, "value", pa_adr_int64hex, T_ATTRIBUTE);
252*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARGDESC, "desc", pa_adr_string, T_ATTRIBUTE);
253*7c478bd9Sstevel@tonic-gate 
254*7c478bd9Sstevel@tonic-gate 	table_init(TAG_MODE, "mode", pa_mode, T_ATTRIBUTE);
255*7c478bd9Sstevel@tonic-gate 	table_init(TAG_FSID, "fsid", pa_adr_int32, T_ATTRIBUTE);
256*7c478bd9Sstevel@tonic-gate 	table_init(TAG_NODEID32, "nodeid", pa_adr_int32, T_ATTRIBUTE);
257*7c478bd9Sstevel@tonic-gate 	table_init(TAG_NODEID64, "nodeid", pa_adr_int64, T_ATTRIBUTE);
258*7c478bd9Sstevel@tonic-gate 	table_init(TAG_DEVICE32, "device", pa_adr_u_int32, T_ATTRIBUTE);
259*7c478bd9Sstevel@tonic-gate 	table_init(TAG_DEVICE64, "device", pa_adr_u_int64, T_ATTRIBUTE);
260*7c478bd9Sstevel@tonic-gate 
261*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SEQNUM, "seq-num", pa_adr_u_int32, T_ATTRIBUTE);
262*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ZONENAME, "name", pa_adr_string, T_ATTRIBUTE);
263*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARGV, "argv", pa_cmd, T_ELEMENT);
264*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARGE, "arge", pa_cmd, T_ELEMENT);
265*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARG, "arg", pa_string, T_ELEMENT);
266*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ENV, "env", pa_string, T_ELEMENT);
267*7c478bd9Sstevel@tonic-gate 	table_init(TAG_XAT, "xattr", pa_string, T_ELEMENT);
268*7c478bd9Sstevel@tonic-gate 
269*7c478bd9Sstevel@tonic-gate 	table_init(TAG_RESULT, "result", NOFUNC, T_ATTRIBUTE);
270*7c478bd9Sstevel@tonic-gate 	table_init(TAG_CUID, "creator-uid", pa_pw_uid, T_ATTRIBUTE);
271*7c478bd9Sstevel@tonic-gate 	table_init(TAG_CGID, "creator-gid", pa_gr_uid, T_ATTRIBUTE);
272*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SEQ, "seq", pa_adr_u_int32, T_ATTRIBUTE);
273*7c478bd9Sstevel@tonic-gate 	table_init(TAG_KEY, "key", pa_adr_int32hex, T_ATTRIBUTE);
274*7c478bd9Sstevel@tonic-gate 
275*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPVERS, "version", pa_adr_charhex, T_ATTRIBUTE);
276*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPSERV, "service_type", pa_adr_charhex, T_ATTRIBUTE);
277*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPLEN, "len", pa_adr_short, T_ATTRIBUTE);
278*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPID, "id", pa_adr_u_short, T_ATTRIBUTE);
279*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPOFFS, "offset", pa_adr_u_short, T_ATTRIBUTE);
280*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPTTL, "time_to_live", pa_adr_charhex, T_ATTRIBUTE);
281*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPPROTO, "protocol", pa_adr_charhex, T_ATTRIBUTE);
282*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPCKSUM, "cksum", pa_adr_u_short, T_ATTRIBUTE);
283*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPSRC, "src_addr", pa_adr_int32hex, T_ATTRIBUTE);
284*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPDEST, "dest_addr", pa_adr_int32hex, T_ATTRIBUTE);
285*7c478bd9Sstevel@tonic-gate 
286*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ACLTYPE, "type", NOFUNC, T_ATTRIBUTE);
287*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ACLVAL, "value", NOFUNC, T_ATTRIBUTE);
288*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SOCKTYPE, "type", pa_adr_shorthex, T_ATTRIBUTE);
289*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SOCKPORT, "port", pa_adr_shorthex, T_ATTRIBUTE);
290*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SOCKADDR, "addr", NOFUNC, T_ATTRIBUTE);
291*7c478bd9Sstevel@tonic-gate 
292*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SOCKEXDOM, "sock_domain", pa_adr_shorthex, T_ATTRIBUTE);
293*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SOCKEXTYPE, "sock_type", pa_adr_shorthex, T_ATTRIBUTE);
294*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SOCKEXLPORT, "lport", NOFUNC, T_ATTRIBUTE);
295*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SOCKEXLADDR, "laddr", NOFUNC, T_ATTRIBUTE);
296*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SOCKEXFPORT, "fport", NOFUNC, T_ATTRIBUTE);
297*7c478bd9Sstevel@tonic-gate 	table_init(TAG_SOCKEXFADDR, "faddr", NOFUNC, T_ATTRIBUTE);
298*7c478bd9Sstevel@tonic-gate 
299*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPCTYPE, "ipc-type", NOFUNC, T_ATTRIBUTE);
300*7c478bd9Sstevel@tonic-gate 	table_init(TAG_IPCID, "ipc-id", pa_adr_int32, T_ATTRIBUTE);
301*7c478bd9Sstevel@tonic-gate 
302*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARBPRINT, "print", NOFUNC, T_ATTRIBUTE);
303*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARBTYPE, "type", NOFUNC, T_ATTRIBUTE);
304*7c478bd9Sstevel@tonic-gate 	table_init(TAG_ARBCOUNT, "count", NOFUNC, T_ATTRIBUTE);
305*7c478bd9Sstevel@tonic-gate 
306*7c478bd9Sstevel@tonic-gate 	table_init(TAG_HOSTID, "host", NOFUNC, T_ATTRIBUTE);
307*7c478bd9Sstevel@tonic-gate #endif	/* _PRAUDIT */
308*7c478bd9Sstevel@tonic-gate }
309