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