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_passwd[3] = { 345 {AUT_SUBJECT, 1, NULL, &(XX_passwd[1]), 346 0, 0, 0, NULL}, 347 {AUT_TEXT, 1, &adr1[0], &(XX_passwd[2]), 348 0, 0, 0, NULL}, 349 {AUT_RETURN, 1, NULL, NULL, 350 0, 0, 0, NULL} 351 }; 352 static struct translation X_passwd = { 353 0, 354 ADT_passwd, 355 AUE_passwd, 356 3, 357 &XX_passwd[0], 358 &XX_passwd[0] 359 }; 360 static struct entry XX_printer_add[7] = { 361 {AUT_SUBJECT, 1, NULL, &(XX_printer_add[1]), 362 0, 0, 0, NULL}, 363 {AUT_TEXT, 1, &adr1[0], &(XX_printer_add[2]), 364 0, 1, 0, NULL}, 365 {AUT_TEXT, 1, &adr1[0], &(XX_printer_add[3]), 366 0, 0, 0, NULL}, 367 {AUT_TEXT, 1, &adr1[0], &(XX_printer_add[4]), 368 0, 1, 0, NULL}, 369 {AUT_UAUTH, 1, &adr1[0], &(XX_printer_add[5]), 370 0, 0, 0, NULL}, 371 {AUT_TEXT, 1, &adr1[0], &(XX_printer_add[6]), 372 0, 1, 0, NULL}, 373 {AUT_RETURN, 1, NULL, NULL, 374 0, 0, 0, NULL} 375 }; 376 static struct translation X_printer_add = { 377 0, 378 ADT_printer_add, 379 AUE_printer_add, 380 7, 381 &XX_printer_add[0], 382 &XX_printer_add[0] 383 }; 384 static struct entry XX_printer_delete[7] = { 385 {AUT_SUBJECT, 1, NULL, &(XX_printer_delete[1]), 386 0, 0, 0, NULL}, 387 {AUT_TEXT, 1, &adr1[0], &(XX_printer_delete[2]), 388 0, 1, 0, NULL}, 389 {AUT_TEXT, 1, &adr1[0], &(XX_printer_delete[3]), 390 0, 0, 0, NULL}, 391 {AUT_TEXT, 1, &adr1[0], &(XX_printer_delete[4]), 392 0, 1, 0, NULL}, 393 {AUT_UAUTH, 1, &adr1[0], &(XX_printer_delete[5]), 394 0, 0, 0, NULL}, 395 {AUT_TEXT, 1, &adr1[0], &(XX_printer_delete[6]), 396 0, 1, 0, NULL}, 397 {AUT_RETURN, 1, NULL, NULL, 398 0, 0, 0, NULL} 399 }; 400 static struct translation X_printer_delete = { 401 0, 402 ADT_printer_delete, 403 AUE_printer_delete, 404 7, 405 &XX_printer_delete[0], 406 &XX_printer_delete[0] 407 }; 408 static struct entry XX_printer_modify[7] = { 409 {AUT_SUBJECT, 1, NULL, &(XX_printer_modify[1]), 410 0, 0, 0, NULL}, 411 {AUT_TEXT, 1, &adr1[0], &(XX_printer_modify[2]), 412 0, 1, 0, NULL}, 413 {AUT_TEXT, 1, &adr1[0], &(XX_printer_modify[3]), 414 0, 0, 0, NULL}, 415 {AUT_TEXT, 1, &adr1[0], &(XX_printer_modify[4]), 416 0, 1, 0, NULL}, 417 {AUT_UAUTH, 1, &adr1[0], &(XX_printer_modify[5]), 418 0, 0, 0, NULL}, 419 {AUT_TEXT, 1, &adr1[0], &(XX_printer_modify[6]), 420 0, 1, 0, NULL}, 421 {AUT_RETURN, 1, NULL, NULL, 422 0, 0, 0, NULL} 423 }; 424 static struct translation X_printer_modify = { 425 0, 426 ADT_printer_modify, 427 AUE_printer_modify, 428 7, 429 &XX_printer_modify[0], 430 &XX_printer_modify[0] 431 }; 432 static struct entry XX_prof_cmd[8] = { 433 {AUT_SUBJECT, 1, NULL, &(XX_prof_cmd[1]), 434 0, 0, 0, NULL}, 435 {AUT_PATH, 1, &adr1[0], &(XX_prof_cmd[2]), 436 0, 1, 0, NULL}, 437 {AUT_PATH, 1, &adr1[0], &(XX_prof_cmd[3]), 438 0, 1, 0, NULL}, 439 {AUT_CMD, 3, &adr2[0], &(XX_prof_cmd[4]), 440 0, 1, 0, NULL}, 441 {AUT_PROCESS, 8, &adr3[0], &(XX_prof_cmd[5]), 442 0, 1, 0, NULL}, 443 {ADT_AUT_PRIV_L, 1, &adr4[0], &(XX_prof_cmd[6]), 444 0, 0, 0, NULL}, 445 {ADT_AUT_PRIV_I, 1, &adr4[0], &(XX_prof_cmd[7]), 446 0, 0, 0, NULL}, 447 {AUT_RETURN, 1, NULL, NULL, 448 0, 0, 0, NULL} 449 }; 450 static struct translation X_prof_cmd = { 451 0, 452 ADT_prof_cmd, 453 AUE_prof_cmd, 454 8, 455 &XX_prof_cmd[0], 456 &XX_prof_cmd[0] 457 }; 458 static struct entry XX_rlogin[3] = { 459 {AUT_SUBJECT, 1, NULL, &(XX_rlogin[1]), 460 0, 0, 0, NULL}, 461 {AUT_TEXT, 1, &adr0[0], &(XX_rlogin[2]), 462 0, 0, 0, NULL}, 463 {AUT_RETURN, 1, NULL, NULL, 464 0, 0, 0, NULL} 465 }; 466 static struct translation X_rlogin = { 467 0, 468 ADT_rlogin, 469 AUE_rlogin, 470 3, 471 &XX_rlogin[0], 472 &XX_rlogin[0] 473 }; 474 static struct entry XX_role_login[3] = { 475 {AUT_SUBJECT, 1, NULL, &(XX_role_login[1]), 476 0, 0, 0, NULL}, 477 {AUT_TEXT, 1, &adr0[0], &(XX_role_login[2]), 478 0, 0, 0, NULL}, 479 {AUT_RETURN, 1, NULL, NULL, 480 0, 0, 0, NULL} 481 }; 482 static struct translation X_role_login = { 483 0, 484 ADT_role_login, 485 AUE_role_login, 486 3, 487 &XX_role_login[0], 488 &XX_role_login[0] 489 }; 490 static struct entry XX_role_logout[2] = { 491 {AUT_SUBJECT, 1, NULL, &(XX_role_logout[1]), 492 0, 0, 0, NULL}, 493 {AUT_RETURN, 1, NULL, NULL, 494 0, 0, 0, NULL} 495 }; 496 static struct translation X_role_logout = { 497 0, 498 ADT_role_logout, 499 AUE_role_logout, 500 2, 501 &XX_role_logout[0], 502 &XX_role_logout[0] 503 }; 504 static struct entry XX_scheduledjob_add[7] = { 505 {AUT_SUBJECT, 1, NULL, &(XX_scheduledjob_add[1]), 506 0, 0, 0, NULL}, 507 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_add[2]), 508 0, 1, 0, NULL}, 509 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_add[3]), 510 0, 0, 0, NULL}, 511 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_add[4]), 512 0, 1, 0, NULL}, 513 {AUT_UAUTH, 1, &adr1[0], &(XX_scheduledjob_add[5]), 514 0, 0, 0, NULL}, 515 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_add[6]), 516 0, 1, 0, NULL}, 517 {AUT_RETURN, 1, NULL, NULL, 518 0, 0, 0, NULL} 519 }; 520 static struct translation X_scheduledjob_add = { 521 0, 522 ADT_scheduledjob_add, 523 AUE_scheduledjob_add, 524 7, 525 &XX_scheduledjob_add[0], 526 &XX_scheduledjob_add[0] 527 }; 528 static struct entry XX_scheduledjob_delete[7] = { 529 {AUT_SUBJECT, 1, NULL, &(XX_scheduledjob_delete[1]), 530 0, 0, 0, NULL}, 531 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_delete[2]), 532 0, 1, 0, NULL}, 533 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_delete[3]), 534 0, 0, 0, NULL}, 535 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_delete[4]), 536 0, 1, 0, NULL}, 537 {AUT_UAUTH, 1, &adr1[0], &(XX_scheduledjob_delete[5]), 538 0, 0, 0, NULL}, 539 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_delete[6]), 540 0, 1, 0, NULL}, 541 {AUT_RETURN, 1, NULL, NULL, 542 0, 0, 0, NULL} 543 }; 544 static struct translation X_scheduledjob_delete = { 545 0, 546 ADT_scheduledjob_delete, 547 AUE_scheduledjob_delete, 548 7, 549 &XX_scheduledjob_delete[0], 550 &XX_scheduledjob_delete[0] 551 }; 552 static struct entry XX_scheduledjob_modify[7] = { 553 {AUT_SUBJECT, 1, NULL, &(XX_scheduledjob_modify[1]), 554 0, 0, 0, NULL}, 555 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_modify[2]), 556 0, 1, 0, NULL}, 557 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_modify[3]), 558 0, 0, 0, NULL}, 559 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_modify[4]), 560 0, 1, 0, NULL}, 561 {AUT_UAUTH, 1, &adr1[0], &(XX_scheduledjob_modify[5]), 562 0, 0, 0, NULL}, 563 {AUT_TEXT, 1, &adr1[0], &(XX_scheduledjob_modify[6]), 564 0, 1, 0, NULL}, 565 {AUT_RETURN, 1, NULL, NULL, 566 0, 0, 0, NULL} 567 }; 568 static struct translation X_scheduledjob_modify = { 569 0, 570 ADT_scheduledjob_modify, 571 AUE_scheduledjob_modify, 572 7, 573 &XX_scheduledjob_modify[0], 574 &XX_scheduledjob_modify[0] 575 }; 576 static struct entry XX_screenlock[2] = { 577 {AUT_SUBJECT, 1, NULL, &(XX_screenlock[1]), 578 0, 0, 0, NULL}, 579 {AUT_RETURN, 1, NULL, NULL, 580 0, 0, 0, NULL} 581 }; 582 static struct translation X_screenlock = { 583 0, 584 ADT_screenlock, 585 AUE_screenlock, 586 2, 587 &XX_screenlock[0], 588 &XX_screenlock[0] 589 }; 590 static struct entry XX_screenunlock[2] = { 591 {AUT_SUBJECT, 1, NULL, &(XX_screenunlock[1]), 592 0, 0, 0, NULL}, 593 {AUT_RETURN, 1, NULL, NULL, 594 0, 0, 0, NULL} 595 }; 596 static struct translation X_screenunlock = { 597 0, 598 ADT_screenunlock, 599 AUE_screenunlock, 600 2, 601 &XX_screenunlock[0], 602 &XX_screenunlock[0] 603 }; 604 static struct entry XX_serialport_add[7] = { 605 {AUT_SUBJECT, 1, NULL, &(XX_serialport_add[1]), 606 0, 0, 0, NULL}, 607 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_add[2]), 608 0, 1, 0, NULL}, 609 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_add[3]), 610 0, 0, 0, NULL}, 611 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_add[4]), 612 0, 1, 0, NULL}, 613 {AUT_UAUTH, 1, &adr1[0], &(XX_serialport_add[5]), 614 0, 0, 0, NULL}, 615 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_add[6]), 616 0, 1, 0, NULL}, 617 {AUT_RETURN, 1, NULL, NULL, 618 0, 0, 0, NULL} 619 }; 620 static struct translation X_serialport_add = { 621 0, 622 ADT_serialport_add, 623 AUE_serialport_add, 624 7, 625 &XX_serialport_add[0], 626 &XX_serialport_add[0] 627 }; 628 static struct entry XX_serialport_delete[7] = { 629 {AUT_SUBJECT, 1, NULL, &(XX_serialport_delete[1]), 630 0, 0, 0, NULL}, 631 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_delete[2]), 632 0, 1, 0, NULL}, 633 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_delete[3]), 634 0, 0, 0, NULL}, 635 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_delete[4]), 636 0, 1, 0, NULL}, 637 {AUT_UAUTH, 1, &adr1[0], &(XX_serialport_delete[5]), 638 0, 0, 0, NULL}, 639 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_delete[6]), 640 0, 1, 0, NULL}, 641 {AUT_RETURN, 1, NULL, NULL, 642 0, 0, 0, NULL} 643 }; 644 static struct translation X_serialport_delete = { 645 0, 646 ADT_serialport_delete, 647 AUE_serialport_delete, 648 7, 649 &XX_serialport_delete[0], 650 &XX_serialport_delete[0] 651 }; 652 static struct entry XX_serialport_modify[7] = { 653 {AUT_SUBJECT, 1, NULL, &(XX_serialport_modify[1]), 654 0, 0, 0, NULL}, 655 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_modify[2]), 656 0, 1, 0, NULL}, 657 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_modify[3]), 658 0, 0, 0, NULL}, 659 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_modify[4]), 660 0, 1, 0, NULL}, 661 {AUT_UAUTH, 1, &adr1[0], &(XX_serialport_modify[5]), 662 0, 0, 0, NULL}, 663 {AUT_TEXT, 1, &adr1[0], &(XX_serialport_modify[6]), 664 0, 1, 0, NULL}, 665 {AUT_RETURN, 1, NULL, NULL, 666 0, 0, 0, NULL} 667 }; 668 static struct translation X_serialport_modify = { 669 0, 670 ADT_serialport_modify, 671 AUE_serialport_modify, 672 7, 673 &XX_serialport_modify[0], 674 &XX_serialport_modify[0] 675 }; 676 static struct entry XX_ssh[3] = { 677 {AUT_SUBJECT, 1, NULL, &(XX_ssh[1]), 678 0, 0, 0, NULL}, 679 {AUT_TEXT, 1, &adr0[0], &(XX_ssh[2]), 680 0, 0, 0, NULL}, 681 {AUT_RETURN, 1, NULL, NULL, 682 0, 0, 0, NULL} 683 }; 684 static struct translation X_ssh = { 685 0, 686 ADT_ssh, 687 AUE_ssh, 688 3, 689 &XX_ssh[0], 690 &XX_ssh[0] 691 }; 692 static struct entry XX_su[3] = { 693 {AUT_SUBJECT, 1, NULL, &(XX_su[1]), 694 0, 0, 0, NULL}, 695 {AUT_TEXT, 1, &adr1[0], &(XX_su[2]), 696 0, 0, 0, NULL}, 697 {AUT_RETURN, 1, NULL, NULL, 698 0, 0, 0, NULL} 699 }; 700 static struct translation X_su = { 701 0, 702 ADT_su, 703 AUE_su, 704 3, 705 &XX_su[0], 706 &XX_su[0] 707 }; 708 static struct entry XX_su_logout[2] = { 709 {AUT_SUBJECT, 1, NULL, &(XX_su_logout[1]), 710 0, 0, 0, NULL}, 711 {AUT_RETURN, 1, NULL, NULL, 712 0, 0, 0, NULL} 713 }; 714 static struct translation X_su_logout = { 715 0, 716 ADT_su_logout, 717 AUE_su_logout, 718 2, 719 &XX_su_logout[0], 720 &XX_su_logout[0] 721 }; 722 static struct entry XX_telnet[3] = { 723 {AUT_SUBJECT, 1, NULL, &(XX_telnet[1]), 724 0, 0, 0, NULL}, 725 {AUT_TEXT, 1, &adr0[0], &(XX_telnet[2]), 726 0, 0, 0, NULL}, 727 {AUT_RETURN, 1, NULL, NULL, 728 0, 0, 0, NULL} 729 }; 730 static struct translation X_telnet = { 731 0, 732 ADT_telnet, 733 AUE_telnet, 734 3, 735 &XX_telnet[0], 736 &XX_telnet[0] 737 }; 738 static struct entry XX_uauth[4] = { 739 {AUT_SUBJECT, 1, NULL, &(XX_uauth[1]), 740 0, 0, 0, NULL}, 741 {AUT_UAUTH, 1, &adr1[0], &(XX_uauth[2]), 742 0, 1, 0, NULL}, 743 {AUT_TEXT, 1, &adr1[0], &(XX_uauth[3]), 744 0, 1, 0, NULL}, 745 {AUT_RETURN, 1, NULL, NULL, 746 0, 0, 0, NULL} 747 }; 748 static struct translation X_uauth = { 749 0, 750 ADT_uauth, 751 AUE_uauth, 752 4, 753 &XX_uauth[0], 754 &XX_uauth[0] 755 }; 756 static struct entry XX_usermgr_add[7] = { 757 {AUT_SUBJECT, 1, NULL, &(XX_usermgr_add[1]), 758 0, 0, 0, NULL}, 759 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_add[2]), 760 0, 1, 0, NULL}, 761 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_add[3]), 762 0, 0, 0, NULL}, 763 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_add[4]), 764 0, 1, 0, NULL}, 765 {AUT_UAUTH, 1, &adr1[0], &(XX_usermgr_add[5]), 766 0, 0, 0, NULL}, 767 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_add[6]), 768 0, 1, 0, NULL}, 769 {AUT_RETURN, 1, NULL, NULL, 770 0, 0, 0, NULL} 771 }; 772 static struct translation X_usermgr_add = { 773 0, 774 ADT_usermgr_add, 775 AUE_usermgr_add, 776 7, 777 &XX_usermgr_add[0], 778 &XX_usermgr_add[0] 779 }; 780 static struct entry XX_usermgr_delete[7] = { 781 {AUT_SUBJECT, 1, NULL, &(XX_usermgr_delete[1]), 782 0, 0, 0, NULL}, 783 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_delete[2]), 784 0, 1, 0, NULL}, 785 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_delete[3]), 786 0, 0, 0, NULL}, 787 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_delete[4]), 788 0, 1, 0, NULL}, 789 {AUT_UAUTH, 1, &adr1[0], &(XX_usermgr_delete[5]), 790 0, 0, 0, NULL}, 791 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_delete[6]), 792 0, 1, 0, NULL}, 793 {AUT_RETURN, 1, NULL, NULL, 794 0, 0, 0, NULL} 795 }; 796 static struct translation X_usermgr_delete = { 797 0, 798 ADT_usermgr_delete, 799 AUE_usermgr_delete, 800 7, 801 &XX_usermgr_delete[0], 802 &XX_usermgr_delete[0] 803 }; 804 static struct entry XX_usermgr_modify[7] = { 805 {AUT_SUBJECT, 1, NULL, &(XX_usermgr_modify[1]), 806 0, 0, 0, NULL}, 807 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_modify[2]), 808 0, 1, 0, NULL}, 809 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_modify[3]), 810 0, 0, 0, NULL}, 811 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_modify[4]), 812 0, 1, 0, NULL}, 813 {AUT_UAUTH, 1, &adr1[0], &(XX_usermgr_modify[5]), 814 0, 0, 0, NULL}, 815 {AUT_TEXT, 1, &adr1[0], &(XX_usermgr_modify[6]), 816 0, 1, 0, NULL}, 817 {AUT_RETURN, 1, NULL, NULL, 818 0, 0, 0, NULL} 819 }; 820 static struct translation X_usermgr_modify = { 821 0, 822 ADT_usermgr_modify, 823 AUE_usermgr_modify, 824 7, 825 &XX_usermgr_modify[0], 826 &XX_usermgr_modify[0] 827 }; 828 static struct entry XX_zlogin[3] = { 829 {AUT_SUBJECT, 1, NULL, &(XX_zlogin[1]), 830 0, 0, 0, NULL}, 831 {AUT_TEXT, 1, &adr1[0], &(XX_zlogin[2]), 832 0, 0, 0, NULL}, 833 {AUT_RETURN, 1, NULL, NULL, 834 0, 0, 0, NULL} 835 }; 836 static struct translation X_zlogin = { 837 0, 838 ADT_zlogin, 839 AUE_zlogin, 840 3, 841 &XX_zlogin[0], 842 &XX_zlogin[0] 843 }; 844 static struct entry XX_zone_state[4] = { 845 {AUT_SUBJECT, 1, NULL, &(XX_zone_state[1]), 846 0, 0, 0, NULL}, 847 {AUT_TEXT, 1, &adr1[0], &(XX_zone_state[2]), 848 0, 1, 0, NULL}, 849 {AUT_ZONENAME, 1, &adr1[0], &(XX_zone_state[3]), 850 0, 1, 0, NULL}, 851 {AUT_RETURN, 1, NULL, NULL, 852 0, 0, 0, NULL} 853 }; 854 static struct translation X_zone_state = { 855 0, 856 ADT_zone_state, 857 AUE_zone_state, 858 4, 859 &XX_zone_state[0], 860 &XX_zone_state[0] 861 }; 862 struct translation *xlate_table[41] = { 863 &X_admin_authenticate, 864 &X_filesystem_add, 865 &X_filesystem_delete, 866 &X_filesystem_modify, 867 &X_inetd_connect, 868 &X_inetd_copylimit, 869 &X_inetd_failrate, 870 &X_inetd_ratelimit, 871 &X_init_solaris, 872 &X_login, 873 &X_logout, 874 &X_network_add, 875 &X_network_delete, 876 &X_network_modify, 877 &X_passwd, 878 &X_printer_add, 879 &X_printer_delete, 880 &X_printer_modify, 881 &X_prof_cmd, 882 &X_rlogin, 883 &X_role_login, 884 &X_role_logout, 885 &X_scheduledjob_add, 886 &X_scheduledjob_delete, 887 &X_scheduledjob_modify, 888 &X_screenlock, 889 &X_screenunlock, 890 &X_serialport_add, 891 &X_serialport_delete, 892 &X_serialport_modify, 893 &X_ssh, 894 &X_su, 895 &X_su_logout, 896 &X_telnet, 897 &X_uauth, 898 &X_usermgr_add, 899 &X_usermgr_delete, 900 &X_usermgr_modify, 901 &X_zlogin, 902 &X_zone_state, 903 NULL 904 }; 905 906 void 907 adt_preload(au_event_t event_id, adt_event_data_t *event_data) 908 { 909 switch (event_id) { 910 case ADT_prof_cmd: 911 event_data->adt_prof_cmd.proc_auid = AU_NOAUDITID; 912 event_data->adt_prof_cmd.proc_euid = AU_NOAUDITID; 913 event_data->adt_prof_cmd.proc_egid = AU_NOAUDITID; 914 event_data->adt_prof_cmd.proc_ruid = AU_NOAUDITID; 915 event_data->adt_prof_cmd.proc_rgid = AU_NOAUDITID; 916 break; 917 default: 918 break; 919 } 920 } 921 #endif 922 923 /* message lists */ 924 925 static char *msg_fail_value[24] = { 926 "Attribute update", 927 "Password update", 928 "bad username", 929 "authorization failed", 930 "bad uid", 931 "unknown failure", 932 "password expired", 933 "Account is locked", 934 "Bad dial up", 935 "Invalid ID", 936 "Invalid password", 937 "Not on console", 938 "Too many failed attempts", 939 "Protocol failure", 940 "Excluded user", 941 "No anonymous", 942 "Invalid command", 943 "Standard input not a tty line", 944 "Program failure", 945 "chdir to home directory", 946 "Input line too long.", 947 "login device override", 948 "authorization bypass", 949 "login disabled" 950 }; 951 /* Deprecated message list */ 952 static char *msg_login_text[10] = { 953 NULL, 954 "Account is locked", 955 "Bad dial up", 956 "Invalid ID", 957 "Invalid password", 958 "Not on console", 959 "Too many failed attempts", 960 "Protocol failure", 961 "Excluded user", 962 "No anonymous" 963 }; 964 965 struct msg_text adt_msg_text[3] = { 966 {0, -1, NULL, -2000}, 967 {0, 23, msg_fail_value, -1000}, 968 {0, 9, msg_login_text, 0} 969 }; 970