adt_xlate.c revision 7c1a057666319a524c052ff0e99e9e26c2695e77
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* AUTOMATICALLY GENERATED CODE; DO NOT EDIT; CONTACT AUDIT PROJECT
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <adt_xlate.h>
#include <libintl.h>
#ifndef _PRAUDIT
/* Internal data type definitions */
{ADT_CHAR2STAR, sizeof (char **)},
{ADT_CHAR2STAR, sizeof (char **)}};
{ADT_UINT32, sizeof (au_asid_t)},
{ADT_TERMIDSTAR, sizeof (au_tid_addr_t *)}};
{ADT_UINT16, sizeof (uint16_t)},
{ADT_UINT16, sizeof (uint16_t)},
/* External event structure to internal event structure */
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_admin_authenticate = {
0,
3,
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_filesystem_add = {
0,
7,
&XX_filesystem_add[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_filesystem_delete = {
0,
7,
&XX_filesystem_delete[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_filesystem_modify = {
0,
7,
&XX_filesystem_modify[0],
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 1, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_inetd_connect = {
0,
6,
&XX_inetd_connect[0],
&XX_inetd_connect[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_inetd_copylimit = {
0,
4,
&XX_inetd_copylimit[0],
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_inetd_failrate = {
0,
4,
&XX_inetd_failrate[0],
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_inetd_ratelimit = {
0,
4,
&XX_inetd_ratelimit[0],
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_init_solaris = {
0,
3,
&XX_init_solaris[0],
&XX_init_solaris[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_login = {
0,
3,
&XX_login[0],
&XX_login[0]
};
0, 0, 0, NULL},
0, 0, 0, "logout %s"},
0, 0, 0, NULL}
};
static struct translation X_logout = {
0,
3,
&XX_logout[0],
&XX_logout[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_network_add = {
0,
7,
&XX_network_add[0],
&XX_network_add[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_network_delete = {
0,
7,
&XX_network_delete[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_network_modify = {
0,
7,
&XX_network_modify[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_newgrp_login = {
0,
3,
&XX_newgrp_login[0],
&XX_newgrp_login[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_passwd = {
0,
3,
&XX_passwd[0],
&XX_passwd[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_printer_add = {
0,
7,
&XX_printer_add[0],
&XX_printer_add[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_printer_delete = {
0,
7,
&XX_printer_delete[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_printer_modify = {
0,
7,
&XX_printer_modify[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 1, 0, NULL},
0, 1, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_prof_cmd = {
0,
8,
&XX_prof_cmd[0],
&XX_prof_cmd[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_rlogin = {
0,
3,
&XX_rlogin[0],
&XX_rlogin[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_role_login = {
0,
3,
&XX_role_login[0],
&XX_role_login[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_role_logout = {
0,
2,
&XX_role_logout[0],
&XX_role_logout[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_scheduledjob_add = {
0,
7,
&XX_scheduledjob_add[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_scheduledjob_delete = {
0,
7,
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_scheduledjob_modify = {
0,
7,
};
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_screenlock = {
0,
2,
&XX_screenlock[0],
&XX_screenlock[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_screenunlock = {
0,
2,
&XX_screenunlock[0],
&XX_screenunlock[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_serialport_add = {
0,
7,
&XX_serialport_add[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_serialport_delete = {
0,
7,
&XX_serialport_delete[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_serialport_modify = {
0,
7,
&XX_serialport_modify[0],
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_ssh = {
0,
3,
&XX_ssh[0],
&XX_ssh[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_su = {
0,
3,
&XX_su[0],
&XX_su[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_su_logout = {
0,
2,
&XX_su_logout[0],
&XX_su_logout[0]
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_telnet = {
0,
3,
&XX_telnet[0],
&XX_telnet[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_uauth = {
0,
4,
&XX_uauth[0],
&XX_uauth[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_usermgr_add = {
0,
7,
&XX_usermgr_add[0],
&XX_usermgr_add[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_usermgr_delete = {
0,
7,
&XX_usermgr_delete[0],
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_usermgr_modify = {
0,
7,
&XX_usermgr_modify[0],
};
0, 0, 0, NULL},
0, 0, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_zlogin = {
0,
3,
&XX_zlogin[0],
&XX_zlogin[0]
};
0, 0, 0, NULL},
0, 1, 0, NULL},
0, 1, 0, NULL},
0, 0, 0, NULL}
};
static struct translation X_zone_state = {
0,
4,
&XX_zone_state[0],
&XX_zone_state[0]
};
&X_login,
&X_logout,
&X_passwd,
&X_rlogin,
&X_ssh,
&X_su,
&X_telnet,
&X_uauth,
&X_zlogin,
};
void
{
switch (event_id) {
case ADT_prof_cmd:
break;
default:
break;
}
}
#endif
/* message lists */
static char *msg_fail_value[24] = {
"Attribute update",
"Password update",
"bad username",
"authorization failed",
"bad uid",
"unknown failure",
"password expired",
"Account is locked",
"Bad dial up",
"Invalid ID",
"Invalid password",
"Not on console",
"Too many failed attempts",
"Protocol failure",
"Excluded user",
"No anonymous",
"Invalid command",
"Standard input not a tty line",
"Program failure",
"chdir to home directory",
"Input line too long.",
"login device override",
"authorization bypass",
"login disabled"
};
/* Deprecated message list */
static char *msg_login_text[10] = {
NULL,
"Account is locked",
"Bad dial up",
"Invalid ID",
"Invalid password",
"Not on console",
"Too many failed attempts",
"Protocol failure",
"Excluded user",
"No anonymous"
};
{0, 9, msg_login_text, 0}
};