xref: /titanic_53/usr/src/lib/libbsm/common/adt_xlate.c (revision 23b5c241225a8ade2b6b9f06ebb891ee459e3b02)
1 /*
2  * CDDL HEADER START
3  *
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.
7  *
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.
12  *
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]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * adt_xlate.c
23  *
24  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25  * Use is subject to license terms.
26  *
27  * AUTOMATICALLY GENERATED CODE; DO NOT EDIT; CONTACT AUDIT PROJECT
28  */
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #include <bsm/libbsm.h>
33 #include <adt_xlate.h>
34 #include <libintl.h>
35 
36 #ifndef _PRAUDIT
37 /* Internal data type definitions */
38 
39 static datadef	adr0[1] =	{{ADT_MSG, ADT_LIST_LOGIN_TEXT}};
40 static datadef	adr1[1] =	{{ADT_CHARSTAR, sizeof (char *)}};
41 static datadef	adr2[3] =	{{ADT_INT, sizeof (int)},
42 				{ADT_CHAR2STAR, sizeof (char **)},
43 				{ADT_CHAR2STAR, sizeof (char **)}};
44 static datadef	adr3[8] =	{{ADT_UID, sizeof (uid_t)},
45 				{ADT_UID, sizeof (uid_t)},
46 				{ADT_GID, sizeof (gid_t)},
47 				{ADT_UID, sizeof (uid_t)},
48 				{ADT_GID, sizeof (gid_t)},
49 				{ADT_PID, sizeof (pid_t)},
50 				{ADT_UINT32, sizeof (au_asid_t)},
51 				{ADT_TERMIDSTAR, sizeof (au_tid_addr_t *)}};
52 static datadef	adr4[1] =	{{ADT_PRIVSTAR, sizeof (priv_set_t *)}};
53 static datadef	adr5[4] =	{{ADT_UINT32, sizeof (uint32_t)},
54 				{ADT_UINT16, sizeof (uint16_t)},
55 				{ADT_UINT16, sizeof (uint16_t)},
56 				{ADT_UINT32ARRAY, 4 * sizeof (uint32_t)}};
57 
58 /* External event structure to internal event structure */
59 
60 static struct entry XX_admin_authenticate[3] = {
61 	{AUT_SUBJECT,	1,	NULL,	&(XX_admin_authenticate[1]),
62 		0,	0,	0,	NULL},
63 	{AUT_TEXT,	1,	&adr0[0],	&(XX_admin_authenticate[2]),
64 		0,	0,	0,	NULL},
65 	{AUT_RETURN,	1,	NULL,	NULL,
66 		0,	0,	0,	NULL}
67 };
68 static struct translation X_admin_authenticate = {
69 	0,
70 	ADT_admin_authenticate,
71 	AUE_admin_authenticate,
72 	3,
73 	&XX_admin_authenticate[0],
74 	&XX_admin_authenticate[0]
75 };
76 static struct entry XX_filesystem_add[7] = {
77 	{AUT_SUBJECT,	1,	NULL,	&(XX_filesystem_add[1]),
78 		0,	0,	0,	NULL},
79 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_add[2]),
80 		0,	1,	0,	NULL},
81 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_add[3]),
82 		0,	0,	0,	NULL},
83 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_add[4]),
84 		0,	1,	0,	NULL},
85 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_filesystem_add[5]),
86 		0,	0,	0,	NULL},
87 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_add[6]),
88 		0,	1,	0,	NULL},
89 	{AUT_RETURN,	1,	NULL,	NULL,
90 		0,	0,	0,	NULL}
91 };
92 static struct translation X_filesystem_add = {
93 	0,
94 	ADT_filesystem_add,
95 	AUE_filesystem_add,
96 	7,
97 	&XX_filesystem_add[0],
98 	&XX_filesystem_add[0]
99 };
100 static struct entry XX_filesystem_delete[7] = {
101 	{AUT_SUBJECT,	1,	NULL,	&(XX_filesystem_delete[1]),
102 		0,	0,	0,	NULL},
103 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_delete[2]),
104 		0,	1,	0,	NULL},
105 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_delete[3]),
106 		0,	0,	0,	NULL},
107 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_delete[4]),
108 		0,	1,	0,	NULL},
109 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_filesystem_delete[5]),
110 		0,	0,	0,	NULL},
111 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_delete[6]),
112 		0,	1,	0,	NULL},
113 	{AUT_RETURN,	1,	NULL,	NULL,
114 		0,	0,	0,	NULL}
115 };
116 static struct translation X_filesystem_delete = {
117 	0,
118 	ADT_filesystem_delete,
119 	AUE_filesystem_delete,
120 	7,
121 	&XX_filesystem_delete[0],
122 	&XX_filesystem_delete[0]
123 };
124 static struct entry XX_filesystem_modify[7] = {
125 	{AUT_SUBJECT,	1,	NULL,	&(XX_filesystem_modify[1]),
126 		0,	0,	0,	NULL},
127 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_modify[2]),
128 		0,	1,	0,	NULL},
129 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_modify[3]),
130 		0,	0,	0,	NULL},
131 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_modify[4]),
132 		0,	1,	0,	NULL},
133 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_filesystem_modify[5]),
134 		0,	0,	0,	NULL},
135 	{AUT_TEXT,	1,	&adr1[0],	&(XX_filesystem_modify[6]),
136 		0,	1,	0,	NULL},
137 	{AUT_RETURN,	1,	NULL,	NULL,
138 		0,	0,	0,	NULL}
139 };
140 static struct translation X_filesystem_modify = {
141 	0,
142 	ADT_filesystem_modify,
143 	AUE_filesystem_modify,
144 	7,
145 	&XX_filesystem_modify[0],
146 	&XX_filesystem_modify[0]
147 };
148 static struct entry XX_inetd_connect[6] = {
149 	{AUT_SUBJECT,	1,	NULL,	&(XX_inetd_connect[1]),
150 		0,	0,	0,	NULL},
151 	{AUT_TEXT,	1,	&adr1[0],	&(XX_inetd_connect[2]),
152 		0,	0,	0,	NULL},
153 	{AUT_TID,	4,	&adr5[0],	&(XX_inetd_connect[3]),
154 		0,	1,	0,	NULL},
155 	{ADT_CMD_ALT,	1,	&adr1[0],	&(XX_inetd_connect[4]),
156 		0,	1,	0,	NULL},
157 	{ADT_AUT_PRIV_E,	1,	&adr4[0],	&(XX_inetd_connect[5]),
158 		0,	1,	0,	NULL},
159 	{AUT_RETURN,	1,	NULL,	NULL,
160 		0,	0,	0,	NULL}
161 };
162 static struct translation X_inetd_connect = {
163 	0,
164 	ADT_inetd_connect,
165 	AUE_inetd_connect,
166 	6,
167 	&XX_inetd_connect[0],
168 	&XX_inetd_connect[0]
169 };
170 static struct entry XX_inetd_copylimit[4] = {
171 	{AUT_SUBJECT,	1,	NULL,	&(XX_inetd_copylimit[1]),
172 		0,	0,	0,	NULL},
173 	{AUT_TEXT,	1,	&adr1[0],	&(XX_inetd_copylimit[2]),
174 		0,	0,	0,	NULL},
175 	{AUT_TEXT,	1,	&adr1[0],	&(XX_inetd_copylimit[3]),
176 		0,	1,	0,	NULL},
177 	{AUT_RETURN,	1,	NULL,	NULL,
178 		0,	0,	0,	NULL}
179 };
180 static struct translation X_inetd_copylimit = {
181 	0,
182 	ADT_inetd_copylimit,
183 	AUE_inetd_copylimit,
184 	4,
185 	&XX_inetd_copylimit[0],
186 	&XX_inetd_copylimit[0]
187 };
188 static struct entry XX_inetd_failrate[4] = {
189 	{AUT_SUBJECT,	1,	NULL,	&(XX_inetd_failrate[1]),
190 		0,	0,	0,	NULL},
191 	{AUT_TEXT,	1,	&adr1[0],	&(XX_inetd_failrate[2]),
192 		0,	0,	0,	NULL},
193 	{AUT_TEXT,	1,	&adr1[0],	&(XX_inetd_failrate[3]),
194 		0,	1,	0,	NULL},
195 	{AUT_RETURN,	1,	NULL,	NULL,
196 		0,	0,	0,	NULL}
197 };
198 static struct translation X_inetd_failrate = {
199 	0,
200 	ADT_inetd_failrate,
201 	AUE_inetd_failrate,
202 	4,
203 	&XX_inetd_failrate[0],
204 	&XX_inetd_failrate[0]
205 };
206 static struct entry XX_inetd_ratelimit[4] = {
207 	{AUT_SUBJECT,	1,	NULL,	&(XX_inetd_ratelimit[1]),
208 		0,	0,	0,	NULL},
209 	{AUT_TEXT,	1,	&adr1[0],	&(XX_inetd_ratelimit[2]),
210 		0,	0,	0,	NULL},
211 	{AUT_TEXT,	1,	&adr1[0],	&(XX_inetd_ratelimit[3]),
212 		0,	1,	0,	NULL},
213 	{AUT_RETURN,	1,	NULL,	NULL,
214 		0,	0,	0,	NULL}
215 };
216 static struct translation X_inetd_ratelimit = {
217 	0,
218 	ADT_inetd_ratelimit,
219 	AUE_inetd_ratelimit,
220 	4,
221 	&XX_inetd_ratelimit[0],
222 	&XX_inetd_ratelimit[0]
223 };
224 static struct entry XX_init_solaris[3] = {
225 	{AUT_SUBJECT,	1,	NULL,	&(XX_init_solaris[1]),
226 		0,	0,	0,	NULL},
227 	{AUT_TEXT,	1,	&adr1[0],	&(XX_init_solaris[2]),
228 		0,	0,	0,	NULL},
229 	{AUT_RETURN,	1,	NULL,	NULL,
230 		0,	0,	0,	NULL}
231 };
232 static struct translation X_init_solaris = {
233 	0,
234 	ADT_init_solaris,
235 	AUE_init_solaris,
236 	3,
237 	&XX_init_solaris[0],
238 	&XX_init_solaris[0]
239 };
240 static struct entry XX_login[3] = {
241 	{AUT_SUBJECT,	1,	NULL,	&(XX_login[1]),
242 		0,	0,	0,	NULL},
243 	{AUT_TEXT,	1,	&adr0[0],	&(XX_login[2]),
244 		0,	0,	0,	NULL},
245 	{AUT_RETURN,	1,	NULL,	NULL,
246 		0,	0,	0,	NULL}
247 };
248 static struct translation X_login = {
249 	0,
250 	ADT_login,
251 	AUE_login,
252 	3,
253 	&XX_login[0],
254 	&XX_login[0]
255 };
256 static struct entry XX_logout[3] = {
257 	{AUT_SUBJECT,	1,	NULL,	&(XX_logout[1]),
258 		0,	0,	0,	NULL},
259 	{AUT_TEXT,	1,	&adr1[0],	&(XX_logout[2]),
260 		0,	0,	0,	"logout %s"},
261 	{AUT_RETURN,	1,	NULL,	NULL,
262 		0,	0,	0,	NULL}
263 };
264 static struct translation X_logout = {
265 	0,
266 	ADT_logout,
267 	AUE_logout,
268 	3,
269 	&XX_logout[0],
270 	&XX_logout[0]
271 };
272 static struct entry XX_network_add[7] = {
273 	{AUT_SUBJECT,	1,	NULL,	&(XX_network_add[1]),
274 		0,	0,	0,	NULL},
275 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_add[2]),
276 		0,	1,	0,	NULL},
277 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_add[3]),
278 		0,	0,	0,	NULL},
279 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_add[4]),
280 		0,	1,	0,	NULL},
281 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_network_add[5]),
282 		0,	0,	0,	NULL},
283 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_add[6]),
284 		0,	1,	0,	NULL},
285 	{AUT_RETURN,	1,	NULL,	NULL,
286 		0,	0,	0,	NULL}
287 };
288 static struct translation X_network_add = {
289 	0,
290 	ADT_network_add,
291 	AUE_network_add,
292 	7,
293 	&XX_network_add[0],
294 	&XX_network_add[0]
295 };
296 static struct entry XX_network_delete[7] = {
297 	{AUT_SUBJECT,	1,	NULL,	&(XX_network_delete[1]),
298 		0,	0,	0,	NULL},
299 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_delete[2]),
300 		0,	1,	0,	NULL},
301 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_delete[3]),
302 		0,	0,	0,	NULL},
303 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_delete[4]),
304 		0,	1,	0,	NULL},
305 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_network_delete[5]),
306 		0,	0,	0,	NULL},
307 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_delete[6]),
308 		0,	1,	0,	NULL},
309 	{AUT_RETURN,	1,	NULL,	NULL,
310 		0,	0,	0,	NULL}
311 };
312 static struct translation X_network_delete = {
313 	0,
314 	ADT_network_delete,
315 	AUE_network_delete,
316 	7,
317 	&XX_network_delete[0],
318 	&XX_network_delete[0]
319 };
320 static struct entry XX_network_modify[7] = {
321 	{AUT_SUBJECT,	1,	NULL,	&(XX_network_modify[1]),
322 		0,	0,	0,	NULL},
323 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_modify[2]),
324 		0,	1,	0,	NULL},
325 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_modify[3]),
326 		0,	0,	0,	NULL},
327 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_modify[4]),
328 		0,	1,	0,	NULL},
329 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_network_modify[5]),
330 		0,	0,	0,	NULL},
331 	{AUT_TEXT,	1,	&adr1[0],	&(XX_network_modify[6]),
332 		0,	1,	0,	NULL},
333 	{AUT_RETURN,	1,	NULL,	NULL,
334 		0,	0,	0,	NULL}
335 };
336 static struct translation X_network_modify = {
337 	0,
338 	ADT_network_modify,
339 	AUE_network_modify,
340 	7,
341 	&XX_network_modify[0],
342 	&XX_network_modify[0]
343 };
344 static struct entry XX_newgrp_login[3] = {
345 	{AUT_SUBJECT,	1,	NULL,	&(XX_newgrp_login[1]),
346 		0,	0,	0,	NULL},
347 	{AUT_TEXT,	1,	&adr1[0],	&(XX_newgrp_login[2]),
348 		0,	1,	0,	NULL},
349 	{AUT_RETURN,	1,	NULL,	NULL,
350 		0,	0,	0,	NULL}
351 };
352 static struct translation X_newgrp_login = {
353 	0,
354 	ADT_newgrp_login,
355 	AUE_newgrp_login,
356 	3,
357 	&XX_newgrp_login[0],
358 	&XX_newgrp_login[0]
359 };
360 static struct entry XX_passwd[3] = {
361 	{AUT_SUBJECT,	1,	NULL,	&(XX_passwd[1]),
362 		0,	0,	0,	NULL},
363 	{AUT_TEXT,	1,	&adr1[0],	&(XX_passwd[2]),
364 		0,	0,	0,	NULL},
365 	{AUT_RETURN,	1,	NULL,	NULL,
366 		0,	0,	0,	NULL}
367 };
368 static struct translation X_passwd = {
369 	0,
370 	ADT_passwd,
371 	AUE_passwd,
372 	3,
373 	&XX_passwd[0],
374 	&XX_passwd[0]
375 };
376 static struct entry XX_printer_add[7] = {
377 	{AUT_SUBJECT,	1,	NULL,	&(XX_printer_add[1]),
378 		0,	0,	0,	NULL},
379 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_add[2]),
380 		0,	1,	0,	NULL},
381 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_add[3]),
382 		0,	0,	0,	NULL},
383 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_add[4]),
384 		0,	1,	0,	NULL},
385 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_printer_add[5]),
386 		0,	0,	0,	NULL},
387 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_add[6]),
388 		0,	1,	0,	NULL},
389 	{AUT_RETURN,	1,	NULL,	NULL,
390 		0,	0,	0,	NULL}
391 };
392 static struct translation X_printer_add = {
393 	0,
394 	ADT_printer_add,
395 	AUE_printer_add,
396 	7,
397 	&XX_printer_add[0],
398 	&XX_printer_add[0]
399 };
400 static struct entry XX_printer_delete[7] = {
401 	{AUT_SUBJECT,	1,	NULL,	&(XX_printer_delete[1]),
402 		0,	0,	0,	NULL},
403 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_delete[2]),
404 		0,	1,	0,	NULL},
405 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_delete[3]),
406 		0,	0,	0,	NULL},
407 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_delete[4]),
408 		0,	1,	0,	NULL},
409 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_printer_delete[5]),
410 		0,	0,	0,	NULL},
411 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_delete[6]),
412 		0,	1,	0,	NULL},
413 	{AUT_RETURN,	1,	NULL,	NULL,
414 		0,	0,	0,	NULL}
415 };
416 static struct translation X_printer_delete = {
417 	0,
418 	ADT_printer_delete,
419 	AUE_printer_delete,
420 	7,
421 	&XX_printer_delete[0],
422 	&XX_printer_delete[0]
423 };
424 static struct entry XX_printer_modify[7] = {
425 	{AUT_SUBJECT,	1,	NULL,	&(XX_printer_modify[1]),
426 		0,	0,	0,	NULL},
427 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_modify[2]),
428 		0,	1,	0,	NULL},
429 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_modify[3]),
430 		0,	0,	0,	NULL},
431 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_modify[4]),
432 		0,	1,	0,	NULL},
433 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_printer_modify[5]),
434 		0,	0,	0,	NULL},
435 	{AUT_TEXT,	1,	&adr1[0],	&(XX_printer_modify[6]),
436 		0,	1,	0,	NULL},
437 	{AUT_RETURN,	1,	NULL,	NULL,
438 		0,	0,	0,	NULL}
439 };
440 static struct translation X_printer_modify = {
441 	0,
442 	ADT_printer_modify,
443 	AUE_printer_modify,
444 	7,
445 	&XX_printer_modify[0],
446 	&XX_printer_modify[0]
447 };
448 static struct entry XX_prof_cmd[8] = {
449 	{AUT_SUBJECT,	1,	NULL,	&(XX_prof_cmd[1]),
450 		0,	0,	0,	NULL},
451 	{AUT_PATH,	1,	&adr1[0],	&(XX_prof_cmd[2]),
452 		0,	1,	0,	NULL},
453 	{AUT_PATH,	1,	&adr1[0],	&(XX_prof_cmd[3]),
454 		0,	1,	0,	NULL},
455 	{AUT_CMD,	3,	&adr2[0],	&(XX_prof_cmd[4]),
456 		0,	1,	0,	NULL},
457 	{AUT_PROCESS,	8,	&adr3[0],	&(XX_prof_cmd[5]),
458 		0,	1,	0,	NULL},
459 	{ADT_AUT_PRIV_L,	1,	&adr4[0],	&(XX_prof_cmd[6]),
460 		0,	0,	0,	NULL},
461 	{ADT_AUT_PRIV_I,	1,	&adr4[0],	&(XX_prof_cmd[7]),
462 		0,	0,	0,	NULL},
463 	{AUT_RETURN,	1,	NULL,	NULL,
464 		0,	0,	0,	NULL}
465 };
466 static struct translation X_prof_cmd = {
467 	0,
468 	ADT_prof_cmd,
469 	AUE_prof_cmd,
470 	8,
471 	&XX_prof_cmd[0],
472 	&XX_prof_cmd[0]
473 };
474 static struct entry XX_rlogin[3] = {
475 	{AUT_SUBJECT,	1,	NULL,	&(XX_rlogin[1]),
476 		0,	0,	0,	NULL},
477 	{AUT_TEXT,	1,	&adr0[0],	&(XX_rlogin[2]),
478 		0,	0,	0,	NULL},
479 	{AUT_RETURN,	1,	NULL,	NULL,
480 		0,	0,	0,	NULL}
481 };
482 static struct translation X_rlogin = {
483 	0,
484 	ADT_rlogin,
485 	AUE_rlogin,
486 	3,
487 	&XX_rlogin[0],
488 	&XX_rlogin[0]
489 };
490 static struct entry XX_role_login[3] = {
491 	{AUT_SUBJECT,	1,	NULL,	&(XX_role_login[1]),
492 		0,	0,	0,	NULL},
493 	{AUT_TEXT,	1,	&adr0[0],	&(XX_role_login[2]),
494 		0,	0,	0,	NULL},
495 	{AUT_RETURN,	1,	NULL,	NULL,
496 		0,	0,	0,	NULL}
497 };
498 static struct translation X_role_login = {
499 	0,
500 	ADT_role_login,
501 	AUE_role_login,
502 	3,
503 	&XX_role_login[0],
504 	&XX_role_login[0]
505 };
506 static struct entry XX_role_logout[2] = {
507 	{AUT_SUBJECT,	1,	NULL,	&(XX_role_logout[1]),
508 		0,	0,	0,	NULL},
509 	{AUT_RETURN,	1,	NULL,	NULL,
510 		0,	0,	0,	NULL}
511 };
512 static struct translation X_role_logout = {
513 	0,
514 	ADT_role_logout,
515 	AUE_role_logout,
516 	2,
517 	&XX_role_logout[0],
518 	&XX_role_logout[0]
519 };
520 static struct entry XX_scheduledjob_add[7] = {
521 	{AUT_SUBJECT,	1,	NULL,	&(XX_scheduledjob_add[1]),
522 		0,	0,	0,	NULL},
523 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_add[2]),
524 		0,	1,	0,	NULL},
525 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_add[3]),
526 		0,	0,	0,	NULL},
527 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_add[4]),
528 		0,	1,	0,	NULL},
529 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_scheduledjob_add[5]),
530 		0,	0,	0,	NULL},
531 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_add[6]),
532 		0,	1,	0,	NULL},
533 	{AUT_RETURN,	1,	NULL,	NULL,
534 		0,	0,	0,	NULL}
535 };
536 static struct translation X_scheduledjob_add = {
537 	0,
538 	ADT_scheduledjob_add,
539 	AUE_scheduledjob_add,
540 	7,
541 	&XX_scheduledjob_add[0],
542 	&XX_scheduledjob_add[0]
543 };
544 static struct entry XX_scheduledjob_delete[7] = {
545 	{AUT_SUBJECT,	1,	NULL,	&(XX_scheduledjob_delete[1]),
546 		0,	0,	0,	NULL},
547 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_delete[2]),
548 		0,	1,	0,	NULL},
549 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_delete[3]),
550 		0,	0,	0,	NULL},
551 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_delete[4]),
552 		0,	1,	0,	NULL},
553 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_scheduledjob_delete[5]),
554 		0,	0,	0,	NULL},
555 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_delete[6]),
556 		0,	1,	0,	NULL},
557 	{AUT_RETURN,	1,	NULL,	NULL,
558 		0,	0,	0,	NULL}
559 };
560 static struct translation X_scheduledjob_delete = {
561 	0,
562 	ADT_scheduledjob_delete,
563 	AUE_scheduledjob_delete,
564 	7,
565 	&XX_scheduledjob_delete[0],
566 	&XX_scheduledjob_delete[0]
567 };
568 static struct entry XX_scheduledjob_modify[7] = {
569 	{AUT_SUBJECT,	1,	NULL,	&(XX_scheduledjob_modify[1]),
570 		0,	0,	0,	NULL},
571 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_modify[2]),
572 		0,	1,	0,	NULL},
573 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_modify[3]),
574 		0,	0,	0,	NULL},
575 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_modify[4]),
576 		0,	1,	0,	NULL},
577 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_scheduledjob_modify[5]),
578 		0,	0,	0,	NULL},
579 	{AUT_TEXT,	1,	&adr1[0],	&(XX_scheduledjob_modify[6]),
580 		0,	1,	0,	NULL},
581 	{AUT_RETURN,	1,	NULL,	NULL,
582 		0,	0,	0,	NULL}
583 };
584 static struct translation X_scheduledjob_modify = {
585 	0,
586 	ADT_scheduledjob_modify,
587 	AUE_scheduledjob_modify,
588 	7,
589 	&XX_scheduledjob_modify[0],
590 	&XX_scheduledjob_modify[0]
591 };
592 static struct entry XX_screenlock[2] = {
593 	{AUT_SUBJECT,	1,	NULL,	&(XX_screenlock[1]),
594 		0,	0,	0,	NULL},
595 	{AUT_RETURN,	1,	NULL,	NULL,
596 		0,	0,	0,	NULL}
597 };
598 static struct translation X_screenlock = {
599 	0,
600 	ADT_screenlock,
601 	AUE_screenlock,
602 	2,
603 	&XX_screenlock[0],
604 	&XX_screenlock[0]
605 };
606 static struct entry XX_screenunlock[2] = {
607 	{AUT_SUBJECT,	1,	NULL,	&(XX_screenunlock[1]),
608 		0,	0,	0,	NULL},
609 	{AUT_RETURN,	1,	NULL,	NULL,
610 		0,	0,	0,	NULL}
611 };
612 static struct translation X_screenunlock = {
613 	0,
614 	ADT_screenunlock,
615 	AUE_screenunlock,
616 	2,
617 	&XX_screenunlock[0],
618 	&XX_screenunlock[0]
619 };
620 static struct entry XX_serialport_add[7] = {
621 	{AUT_SUBJECT,	1,	NULL,	&(XX_serialport_add[1]),
622 		0,	0,	0,	NULL},
623 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_add[2]),
624 		0,	1,	0,	NULL},
625 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_add[3]),
626 		0,	0,	0,	NULL},
627 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_add[4]),
628 		0,	1,	0,	NULL},
629 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_serialport_add[5]),
630 		0,	0,	0,	NULL},
631 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_add[6]),
632 		0,	1,	0,	NULL},
633 	{AUT_RETURN,	1,	NULL,	NULL,
634 		0,	0,	0,	NULL}
635 };
636 static struct translation X_serialport_add = {
637 	0,
638 	ADT_serialport_add,
639 	AUE_serialport_add,
640 	7,
641 	&XX_serialport_add[0],
642 	&XX_serialport_add[0]
643 };
644 static struct entry XX_serialport_delete[7] = {
645 	{AUT_SUBJECT,	1,	NULL,	&(XX_serialport_delete[1]),
646 		0,	0,	0,	NULL},
647 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_delete[2]),
648 		0,	1,	0,	NULL},
649 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_delete[3]),
650 		0,	0,	0,	NULL},
651 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_delete[4]),
652 		0,	1,	0,	NULL},
653 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_serialport_delete[5]),
654 		0,	0,	0,	NULL},
655 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_delete[6]),
656 		0,	1,	0,	NULL},
657 	{AUT_RETURN,	1,	NULL,	NULL,
658 		0,	0,	0,	NULL}
659 };
660 static struct translation X_serialport_delete = {
661 	0,
662 	ADT_serialport_delete,
663 	AUE_serialport_delete,
664 	7,
665 	&XX_serialport_delete[0],
666 	&XX_serialport_delete[0]
667 };
668 static struct entry XX_serialport_modify[7] = {
669 	{AUT_SUBJECT,	1,	NULL,	&(XX_serialport_modify[1]),
670 		0,	0,	0,	NULL},
671 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_modify[2]),
672 		0,	1,	0,	NULL},
673 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_modify[3]),
674 		0,	0,	0,	NULL},
675 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_modify[4]),
676 		0,	1,	0,	NULL},
677 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_serialport_modify[5]),
678 		0,	0,	0,	NULL},
679 	{AUT_TEXT,	1,	&adr1[0],	&(XX_serialport_modify[6]),
680 		0,	1,	0,	NULL},
681 	{AUT_RETURN,	1,	NULL,	NULL,
682 		0,	0,	0,	NULL}
683 };
684 static struct translation X_serialport_modify = {
685 	0,
686 	ADT_serialport_modify,
687 	AUE_serialport_modify,
688 	7,
689 	&XX_serialport_modify[0],
690 	&XX_serialport_modify[0]
691 };
692 static struct entry XX_ssh[3] = {
693 	{AUT_SUBJECT,	1,	NULL,	&(XX_ssh[1]),
694 		0,	0,	0,	NULL},
695 	{AUT_TEXT,	1,	&adr0[0],	&(XX_ssh[2]),
696 		0,	0,	0,	NULL},
697 	{AUT_RETURN,	1,	NULL,	NULL,
698 		0,	0,	0,	NULL}
699 };
700 static struct translation X_ssh = {
701 	0,
702 	ADT_ssh,
703 	AUE_ssh,
704 	3,
705 	&XX_ssh[0],
706 	&XX_ssh[0]
707 };
708 static struct entry XX_su[3] = {
709 	{AUT_SUBJECT,	1,	NULL,	&(XX_su[1]),
710 		0,	0,	0,	NULL},
711 	{AUT_TEXT,	1,	&adr1[0],	&(XX_su[2]),
712 		0,	0,	0,	NULL},
713 	{AUT_RETURN,	1,	NULL,	NULL,
714 		0,	0,	0,	NULL}
715 };
716 static struct translation X_su = {
717 	0,
718 	ADT_su,
719 	AUE_su,
720 	3,
721 	&XX_su[0],
722 	&XX_su[0]
723 };
724 static struct entry XX_su_logout[2] = {
725 	{AUT_SUBJECT,	1,	NULL,	&(XX_su_logout[1]),
726 		0,	0,	0,	NULL},
727 	{AUT_RETURN,	1,	NULL,	NULL,
728 		0,	0,	0,	NULL}
729 };
730 static struct translation X_su_logout = {
731 	0,
732 	ADT_su_logout,
733 	AUE_su_logout,
734 	2,
735 	&XX_su_logout[0],
736 	&XX_su_logout[0]
737 };
738 static struct entry XX_telnet[3] = {
739 	{AUT_SUBJECT,	1,	NULL,	&(XX_telnet[1]),
740 		0,	0,	0,	NULL},
741 	{AUT_TEXT,	1,	&adr0[0],	&(XX_telnet[2]),
742 		0,	0,	0,	NULL},
743 	{AUT_RETURN,	1,	NULL,	NULL,
744 		0,	0,	0,	NULL}
745 };
746 static struct translation X_telnet = {
747 	0,
748 	ADT_telnet,
749 	AUE_telnet,
750 	3,
751 	&XX_telnet[0],
752 	&XX_telnet[0]
753 };
754 static struct entry XX_uauth[4] = {
755 	{AUT_SUBJECT,	1,	NULL,	&(XX_uauth[1]),
756 		0,	0,	0,	NULL},
757 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_uauth[2]),
758 		0,	1,	0,	NULL},
759 	{AUT_TEXT,	1,	&adr1[0],	&(XX_uauth[3]),
760 		0,	1,	0,	NULL},
761 	{AUT_RETURN,	1,	NULL,	NULL,
762 		0,	0,	0,	NULL}
763 };
764 static struct translation X_uauth = {
765 	0,
766 	ADT_uauth,
767 	AUE_uauth,
768 	4,
769 	&XX_uauth[0],
770 	&XX_uauth[0]
771 };
772 static struct entry XX_usermgr_add[7] = {
773 	{AUT_SUBJECT,	1,	NULL,	&(XX_usermgr_add[1]),
774 		0,	0,	0,	NULL},
775 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_add[2]),
776 		0,	1,	0,	NULL},
777 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_add[3]),
778 		0,	0,	0,	NULL},
779 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_add[4]),
780 		0,	1,	0,	NULL},
781 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_usermgr_add[5]),
782 		0,	0,	0,	NULL},
783 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_add[6]),
784 		0,	1,	0,	NULL},
785 	{AUT_RETURN,	1,	NULL,	NULL,
786 		0,	0,	0,	NULL}
787 };
788 static struct translation X_usermgr_add = {
789 	0,
790 	ADT_usermgr_add,
791 	AUE_usermgr_add,
792 	7,
793 	&XX_usermgr_add[0],
794 	&XX_usermgr_add[0]
795 };
796 static struct entry XX_usermgr_delete[7] = {
797 	{AUT_SUBJECT,	1,	NULL,	&(XX_usermgr_delete[1]),
798 		0,	0,	0,	NULL},
799 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_delete[2]),
800 		0,	1,	0,	NULL},
801 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_delete[3]),
802 		0,	0,	0,	NULL},
803 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_delete[4]),
804 		0,	1,	0,	NULL},
805 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_usermgr_delete[5]),
806 		0,	0,	0,	NULL},
807 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_delete[6]),
808 		0,	1,	0,	NULL},
809 	{AUT_RETURN,	1,	NULL,	NULL,
810 		0,	0,	0,	NULL}
811 };
812 static struct translation X_usermgr_delete = {
813 	0,
814 	ADT_usermgr_delete,
815 	AUE_usermgr_delete,
816 	7,
817 	&XX_usermgr_delete[0],
818 	&XX_usermgr_delete[0]
819 };
820 static struct entry XX_usermgr_modify[7] = {
821 	{AUT_SUBJECT,	1,	NULL,	&(XX_usermgr_modify[1]),
822 		0,	0,	0,	NULL},
823 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_modify[2]),
824 		0,	1,	0,	NULL},
825 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_modify[3]),
826 		0,	0,	0,	NULL},
827 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_modify[4]),
828 		0,	1,	0,	NULL},
829 	{AUT_UAUTH,	1,	&adr1[0],	&(XX_usermgr_modify[5]),
830 		0,	0,	0,	NULL},
831 	{AUT_TEXT,	1,	&adr1[0],	&(XX_usermgr_modify[6]),
832 		0,	1,	0,	NULL},
833 	{AUT_RETURN,	1,	NULL,	NULL,
834 		0,	0,	0,	NULL}
835 };
836 static struct translation X_usermgr_modify = {
837 	0,
838 	ADT_usermgr_modify,
839 	AUE_usermgr_modify,
840 	7,
841 	&XX_usermgr_modify[0],
842 	&XX_usermgr_modify[0]
843 };
844 static struct entry XX_zlogin[3] = {
845 	{AUT_SUBJECT,	1,	NULL,	&(XX_zlogin[1]),
846 		0,	0,	0,	NULL},
847 	{AUT_TEXT,	1,	&adr1[0],	&(XX_zlogin[2]),
848 		0,	0,	0,	NULL},
849 	{AUT_RETURN,	1,	NULL,	NULL,
850 		0,	0,	0,	NULL}
851 };
852 static struct translation X_zlogin = {
853 	0,
854 	ADT_zlogin,
855 	AUE_zlogin,
856 	3,
857 	&XX_zlogin[0],
858 	&XX_zlogin[0]
859 };
860 static struct entry XX_zone_state[4] = {
861 	{AUT_SUBJECT,	1,	NULL,	&(XX_zone_state[1]),
862 		0,	0,	0,	NULL},
863 	{AUT_TEXT,	1,	&adr1[0],	&(XX_zone_state[2]),
864 		0,	1,	0,	NULL},
865 	{AUT_ZONENAME,	1,	&adr1[0],	&(XX_zone_state[3]),
866 		0,	1,	0,	NULL},
867 	{AUT_RETURN,	1,	NULL,	NULL,
868 		0,	0,	0,	NULL}
869 };
870 static struct translation X_zone_state = {
871 	0,
872 	ADT_zone_state,
873 	AUE_zone_state,
874 	4,
875 	&XX_zone_state[0],
876 	&XX_zone_state[0]
877 };
878 struct translation *xlate_table[42] = {
879 	&X_admin_authenticate,
880 	&X_filesystem_add,
881 	&X_filesystem_delete,
882 	&X_filesystem_modify,
883 	&X_inetd_connect,
884 	&X_inetd_copylimit,
885 	&X_inetd_failrate,
886 	&X_inetd_ratelimit,
887 	&X_init_solaris,
888 	&X_login,
889 	&X_logout,
890 	&X_network_add,
891 	&X_network_delete,
892 	&X_network_modify,
893 	&X_newgrp_login,
894 	&X_passwd,
895 	&X_printer_add,
896 	&X_printer_delete,
897 	&X_printer_modify,
898 	&X_prof_cmd,
899 	&X_rlogin,
900 	&X_role_login,
901 	&X_role_logout,
902 	&X_scheduledjob_add,
903 	&X_scheduledjob_delete,
904 	&X_scheduledjob_modify,
905 	&X_screenlock,
906 	&X_screenunlock,
907 	&X_serialport_add,
908 	&X_serialport_delete,
909 	&X_serialport_modify,
910 	&X_ssh,
911 	&X_su,
912 	&X_su_logout,
913 	&X_telnet,
914 	&X_uauth,
915 	&X_usermgr_add,
916 	&X_usermgr_delete,
917 	&X_usermgr_modify,
918 	&X_zlogin,
919 	&X_zone_state,
920 	NULL
921 };
922 
923 void
924 adt_preload(au_event_t event_id, adt_event_data_t *event_data)
925 {
926 	switch (event_id) {
927 	case ADT_prof_cmd:
928 		event_data->adt_prof_cmd.proc_auid = AU_NOAUDITID;
929 		event_data->adt_prof_cmd.proc_euid = AU_NOAUDITID;
930 		event_data->adt_prof_cmd.proc_egid = AU_NOAUDITID;
931 		event_data->adt_prof_cmd.proc_ruid = AU_NOAUDITID;
932 		event_data->adt_prof_cmd.proc_rgid = AU_NOAUDITID;
933 		break;
934 	default:
935 		break;
936 	}
937 }
938 #endif
939 
940 /* message lists */
941 
942 static char *msg_fail_value[24] = {
943 	"Attribute update",
944 	"Password update",
945 	"bad username",
946 	"authorization failed",
947 	"bad uid",
948 	"unknown failure",
949 	"password expired",
950 	"Account is locked",
951 	"Bad dial up",
952 	"Invalid ID",
953 	"Invalid password",
954 	"Not on console",
955 	"Too many failed attempts",
956 	"Protocol failure",
957 	"Excluded user",
958 	"No anonymous",
959 	"Invalid command",
960 	"Standard input not a tty line",
961 	"Program failure",
962 	"chdir to home directory",
963 	"Input line too long.",
964 	"login device override",
965 	"authorization bypass",
966 	"login disabled"
967 };
968 /* Deprecated message list */
969 static char *msg_login_text[10] = {
970 	NULL,
971 	"Account is locked",
972 	"Bad dial up",
973 	"Invalid ID",
974 	"Invalid password",
975 	"Not on console",
976 	"Too many failed attempts",
977 	"Protocol failure",
978 	"Excluded user",
979 	"No anonymous"
980 };
981 
982 struct msg_text adt_msg_text[3] = {
983 	{0, -1, NULL, -2000},
984 	{0, 23, msg_fail_value, -1000},
985 	{0, 9, msg_login_text, 0}
986 };
987