17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 545916cd2Sjpk * Common Development and Distribution License (the "License"). 645916cd2Sjpk * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* 22*047f6e6fSgww * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate * Use is subject to license terms. 247c478bd9Sstevel@tonic-gate */ 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate /* 277c478bd9Sstevel@tonic-gate * Solaris Audit Token Table. 287c478bd9Sstevel@tonic-gate */ 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #include <locale.h> 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate #include <stdio.h> 337c478bd9Sstevel@tonic-gate #include <stdlib.h> 347c478bd9Sstevel@tonic-gate #include <string.h> 357c478bd9Sstevel@tonic-gate #include <bsm/audit.h> 367c478bd9Sstevel@tonic-gate #include <bsm/audit_record.h> 377c478bd9Sstevel@tonic-gate #include <bsm/libbsm.h> 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gate #include "praudit.h" 407c478bd9Sstevel@tonic-gate #include "toktable.h" 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gate token_desc_t tokentable[MAXTAG + 1]; 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gate #define table_init(i, n, f, t) \ 457c478bd9Sstevel@tonic-gate tokentable[(int)(i)].t_name = (n); \ 467c478bd9Sstevel@tonic-gate tokentable[(int)(i)].t_tagname = (n); \ 477c478bd9Sstevel@tonic-gate tokentable[(int)(i)].func = (f); \ 487c478bd9Sstevel@tonic-gate tokentable[(int)(i)].t_type = (t); 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate /* table_initx is for entries which need name different from tagname */ 517c478bd9Sstevel@tonic-gate #define table_initx(i, n, tn, f, t) \ 527c478bd9Sstevel@tonic-gate tokentable[(int)(i)].t_name = (n); \ 537c478bd9Sstevel@tonic-gate tokentable[(int)(i)].t_tagname = (tn); \ 547c478bd9Sstevel@tonic-gate tokentable[(int)(i)].func = (f); \ 557c478bd9Sstevel@tonic-gate tokentable[(int)(i)].t_type = (t); 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate /* 587c478bd9Sstevel@tonic-gate * Initialize the table of tokens & other tags. 597c478bd9Sstevel@tonic-gate */ 607c478bd9Sstevel@tonic-gate void 617c478bd9Sstevel@tonic-gate init_tokens(void) 627c478bd9Sstevel@tonic-gate { 637c478bd9Sstevel@tonic-gate /* 647c478bd9Sstevel@tonic-gate * TRANSLATION_NOTE 657c478bd9Sstevel@tonic-gate * These names refer to different type of audit tokens. 668f9294f3Sgww * To gain a better understanding of each token, read 678f9294f3Sgww * System Administration Guide: Security Services >> Solaris Auditing 688f9294f3Sgww * at http://docs.sun.com. 697c478bd9Sstevel@tonic-gate */ 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate (void) gettext("file"); /* to force out the translation note */ 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate /* 747c478bd9Sstevel@tonic-gate * Control token types 757c478bd9Sstevel@tonic-gate */ 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate table_init(AUT_INVALID, (char *)0, NOFUNC, T_UNKNOWN); 787c478bd9Sstevel@tonic-gate table_init(AUT_OTHER_FILE32, "file", file_token, T_EXTENDED); 797c478bd9Sstevel@tonic-gate table_init(AUT_OHEADER, "old_header", NOFUNC, T_EXTENDED); 807c478bd9Sstevel@tonic-gate table_init(AUT_TRAILER, "trailer", trailer_token, T_UNKNOWN); 817c478bd9Sstevel@tonic-gate table_initx(AUT_HEADER32, "header", "record", 827c478bd9Sstevel@tonic-gate header_token, T_EXTENDED); 837c478bd9Sstevel@tonic-gate table_initx(AUT_HEADER32_EX, "header", "record", 847c478bd9Sstevel@tonic-gate header32_ex_token, T_EXTENDED); 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate /* 877c478bd9Sstevel@tonic-gate * Data token types 887c478bd9Sstevel@tonic-gate */ 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate table_init(AUT_DATA, "arbitrary", arbitrary_data_token, T_EXTENDED); 91103b2b15Sgww table_init(AUT_FMRI, "fmri", fmri_token, T_ELEMENT); 927c478bd9Sstevel@tonic-gate table_init(AUT_IPC, "IPC", s5_IPC_token, T_ENCLOSED); 937c478bd9Sstevel@tonic-gate table_init(AUT_PATH, "path", path_token, T_ELEMENT); 947c478bd9Sstevel@tonic-gate table_init(AUT_XATPATH, "path_attr", path_attr_token, T_ELEMENT); 957c478bd9Sstevel@tonic-gate table_init(AUT_SUBJECT32, "subject", subject32_token, T_ENCLOSED); 967c478bd9Sstevel@tonic-gate table_init(AUT_PROCESS32, "process", process32_token, T_ENCLOSED); 977c478bd9Sstevel@tonic-gate table_init(AUT_RETURN32, "return", return_value32_token, T_ENCLOSED); 987c478bd9Sstevel@tonic-gate table_init(AUT_TEXT, "text", text_token, T_ELEMENT); 997c478bd9Sstevel@tonic-gate table_init(AUT_OPAQUE, "opaque", opaque_token, T_ELEMENT); 1007c478bd9Sstevel@tonic-gate table_initx(AUT_IN_ADDR, "ip address", "ip_address", 1017c478bd9Sstevel@tonic-gate ip_addr_token, T_ELEMENT); 1027c478bd9Sstevel@tonic-gate table_init(AUT_IP, "ip", ip_token, T_ENCLOSED); 1037c478bd9Sstevel@tonic-gate table_initx(AUT_IPORT, "ip port", "ip_port", 1047c478bd9Sstevel@tonic-gate iport_token, T_ELEMENT); 1057c478bd9Sstevel@tonic-gate table_init(AUT_ARG32, "argument", argument32_token, T_ENCLOSED); 1067c478bd9Sstevel@tonic-gate table_initx(AUT_SOCKET, "socket", "old_socket", 1077c478bd9Sstevel@tonic-gate socket_token, T_ENCLOSED); 1087c478bd9Sstevel@tonic-gate table_init(AUT_SEQ, "sequence", sequence_token, T_ENCLOSED); 1097c478bd9Sstevel@tonic-gate 1107c478bd9Sstevel@tonic-gate /* 1117c478bd9Sstevel@tonic-gate * Modifier token types 1127c478bd9Sstevel@tonic-gate */ 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gate table_init(AUT_ACL, "acl", acl_token, T_ENCLOSED); 115a7746f66Stz204579 table_init(AUT_ACE, "acl", ace_token, T_ENCLOSED); 1167c478bd9Sstevel@tonic-gate table_init(AUT_ATTR, "attribute", attribute_token, T_ENCLOSED); 1177c478bd9Sstevel@tonic-gate table_init(AUT_IPC_PERM, "IPC_perm", s5_IPC_perm_token, T_ENCLOSED); 1187c478bd9Sstevel@tonic-gate table_init(AUT_GROUPS, "group", group_token, T_ELEMENT); 11945916cd2Sjpk table_initx(AUT_LABEL, "sensitivity label", "sensitivity_label", 120a13cf099Sgww label_token, T_ELEMENT); 1217c478bd9Sstevel@tonic-gate table_init(AUT_PRIV, "privilege", privilege_token, T_EXTENDED); 1227c478bd9Sstevel@tonic-gate table_initx(AUT_UPRIV, "use of privilege", "use_of_privilege", 1237c478bd9Sstevel@tonic-gate useofpriv_token, T_EXTENDED); 1247c478bd9Sstevel@tonic-gate table_init(AUT_LIAISON, "liaison", liaison_token, T_ELEMENT); 1257c478bd9Sstevel@tonic-gate table_init(AUT_NEWGROUPS, "group", newgroup_token, T_ELEMENT); 1267c478bd9Sstevel@tonic-gate table_init(AUT_EXEC_ARGS, "exec_args", exec_args_token, T_ELEMENT); 1277c478bd9Sstevel@tonic-gate table_init(AUT_EXEC_ENV, "exec_env", exec_env_token, T_ELEMENT); 1287c478bd9Sstevel@tonic-gate table_init(AUT_ATTR32, "attribute", attribute32_token, T_ENCLOSED); 1297c478bd9Sstevel@tonic-gate table_initx(AUT_UAUTH, "use of authorization", 1307c478bd9Sstevel@tonic-gate "use_of_authorization", useofauth_token, T_ELEMENT); 131*047f6e6fSgww table_init(AUT_USER, "user", user_token, T_ENCLOSED); 132*047f6e6fSgww table_init(AUT_ZONENAME, "zone", zonename_token, T_ENCLOSED); 1337c478bd9Sstevel@tonic-gate 1347c478bd9Sstevel@tonic-gate /* 1357c478bd9Sstevel@tonic-gate * X windows token types 1367c478bd9Sstevel@tonic-gate */ 1377c478bd9Sstevel@tonic-gate table_initx(AUT_XATOM, "X atom", "X_atom", xatom_token, T_ELEMENT); 1387c478bd9Sstevel@tonic-gate table_initx(AUT_XOBJ, "X object", "X_object", NOFUNC, T_UNKNOWN); 1397c478bd9Sstevel@tonic-gate table_initx(AUT_XPROTO, "X protocol", "X_protocol", NOFUNC, T_UNKNOWN); 1407c478bd9Sstevel@tonic-gate table_initx(AUT_XSELECT, "X selection", "X_selection", 1417c478bd9Sstevel@tonic-gate xselect_token, T_ELEMENT); 1427c478bd9Sstevel@tonic-gate table_initx(AUT_XCOLORMAP, "X color map", "X_color_map", 1437c478bd9Sstevel@tonic-gate xcolormap_token, T_ENCLOSED); 1447c478bd9Sstevel@tonic-gate table_initx(AUT_XCURSOR, "X cursor", "X_cursor", 1457c478bd9Sstevel@tonic-gate xcursor_token, T_ENCLOSED); 1467c478bd9Sstevel@tonic-gate table_initx(AUT_XFONT, "X font", "X_font", xfont_token, T_ENCLOSED); 1477c478bd9Sstevel@tonic-gate table_initx(AUT_XGC, "X graphic context", "X_graphic_context", 1487c478bd9Sstevel@tonic-gate xgc_token, T_ENCLOSED); 1497c478bd9Sstevel@tonic-gate table_initx(AUT_XPIXMAP, "X pixmap", "X_pixmap", 1507c478bd9Sstevel@tonic-gate xpixmap_token, T_ENCLOSED); 1517c478bd9Sstevel@tonic-gate table_initx(AUT_XPROPERTY, "X property", "X_property", 1527c478bd9Sstevel@tonic-gate xproperty_token, T_EXTENDED); 1537c478bd9Sstevel@tonic-gate table_initx(AUT_XWINDOW, "X window", "X_window", 1547c478bd9Sstevel@tonic-gate xwindow_token, T_ENCLOSED); 1557c478bd9Sstevel@tonic-gate table_initx(AUT_XCLIENT, "X client", "X_client", 1567c478bd9Sstevel@tonic-gate xclient_token, T_ELEMENT); 1577c478bd9Sstevel@tonic-gate 1587c478bd9Sstevel@tonic-gate /* 1597c478bd9Sstevel@tonic-gate * Command token types 1607c478bd9Sstevel@tonic-gate */ 1617c478bd9Sstevel@tonic-gate 1627c478bd9Sstevel@tonic-gate table_init(AUT_CMD, "cmd", cmd_token, T_ELEMENT); 1637c478bd9Sstevel@tonic-gate table_init(AUT_EXIT, "exit", exit_token, T_ENCLOSED); 1647c478bd9Sstevel@tonic-gate 1657c478bd9Sstevel@tonic-gate /* 1667c478bd9Sstevel@tonic-gate * Miscellaneous token types 1677c478bd9Sstevel@tonic-gate */ 1687c478bd9Sstevel@tonic-gate 1697c478bd9Sstevel@tonic-gate table_init(AUT_HOST, "host", host_token, T_ELEMENT); 1707c478bd9Sstevel@tonic-gate 1717c478bd9Sstevel@tonic-gate /* 1727c478bd9Sstevel@tonic-gate * Solaris64 token types 1737c478bd9Sstevel@tonic-gate */ 1747c478bd9Sstevel@tonic-gate 1757c478bd9Sstevel@tonic-gate table_init(AUT_ARG64, "argument", argument64_token, T_ENCLOSED); 1767c478bd9Sstevel@tonic-gate table_init(AUT_RETURN64, "return", return_value64_token, T_ENCLOSED); 1777c478bd9Sstevel@tonic-gate table_init(AUT_ATTR64, "attribute", attribute64_token, T_ENCLOSED); 1787c478bd9Sstevel@tonic-gate table_initx(AUT_HEADER64, "header", "record", 1797c478bd9Sstevel@tonic-gate header64_token, T_EXTENDED); 1807c478bd9Sstevel@tonic-gate table_init(AUT_SUBJECT64, "subject", subject64_token, T_ENCLOSED); 1817c478bd9Sstevel@tonic-gate table_init(AUT_PROCESS64, "process", process64_token, T_ENCLOSED); 1827c478bd9Sstevel@tonic-gate table_init(AUT_OTHER_FILE64, "file", file64_token, T_EXTENDED); 1837c478bd9Sstevel@tonic-gate 1847c478bd9Sstevel@tonic-gate /* 1857c478bd9Sstevel@tonic-gate * Extended network address token types 1867c478bd9Sstevel@tonic-gate */ 1877c478bd9Sstevel@tonic-gate 1887c478bd9Sstevel@tonic-gate table_initx(AUT_HEADER64_EX, "header", "record", 1897c478bd9Sstevel@tonic-gate header64_ex_token, T_EXTENDED); 1907c478bd9Sstevel@tonic-gate table_init(AUT_SUBJECT32_EX, "subject", subject32_ex_token, T_ENCLOSED); 1917c478bd9Sstevel@tonic-gate table_init(AUT_PROCESS32_EX, "process", process32_ex_token, T_ENCLOSED); 1927c478bd9Sstevel@tonic-gate table_init(AUT_SUBJECT64_EX, "subject", subject64_ex_token, T_ENCLOSED); 1937c478bd9Sstevel@tonic-gate table_init(AUT_PROCESS64_EX, "process", process64_ex_token, T_ENCLOSED); 1947c478bd9Sstevel@tonic-gate table_initx(AUT_IN_ADDR_EX, "ip address", "ip_address", 1957c478bd9Sstevel@tonic-gate ip_addr_ex_token, T_ELEMENT); 1967c478bd9Sstevel@tonic-gate table_init(AUT_SOCKET_EX, "socket", socket_ex_token, T_ENCLOSED); 197*047f6e6fSgww table_init(AUT_TID, "tid", tid_token, T_EXTENDED); 1987c478bd9Sstevel@tonic-gate 1997c478bd9Sstevel@tonic-gate #ifdef _PRAUDIT 2007c478bd9Sstevel@tonic-gate /* 2017c478bd9Sstevel@tonic-gate * Done with tokens above here. Now do remaining tags. 2027c478bd9Sstevel@tonic-gate */ 2037c478bd9Sstevel@tonic-gate table_init(TAG_AUID, "audit-uid", pa_pw_uid, T_ATTRIBUTE); 2047c478bd9Sstevel@tonic-gate table_init(TAG_UID, "uid", pa_pw_uid, T_ATTRIBUTE); 2057c478bd9Sstevel@tonic-gate table_init(TAG_GID, "gid", pa_gr_uid, T_ATTRIBUTE); 2067c478bd9Sstevel@tonic-gate table_init(TAG_RUID, "ruid", pa_pw_uid, T_ATTRIBUTE); 2077c478bd9Sstevel@tonic-gate table_init(TAG_RGID, "rgid", pa_gr_uid, T_ATTRIBUTE); 2087c478bd9Sstevel@tonic-gate 2097c478bd9Sstevel@tonic-gate table_init(TAG_PID, "pid", pa_adr_u_int32, T_ATTRIBUTE); 2107c478bd9Sstevel@tonic-gate table_init(TAG_SID, "sid", pa_adr_u_int32, T_ATTRIBUTE); 2117c478bd9Sstevel@tonic-gate 2127c478bd9Sstevel@tonic-gate table_init(TAG_TID32, "tid", pa_tid32, T_ATTRIBUTE); 2137c478bd9Sstevel@tonic-gate table_init(TAG_TID64, "tid", pa_tid64, T_ATTRIBUTE); 2147c478bd9Sstevel@tonic-gate table_init(TAG_TID32_EX, "tid", pa_tid32_ex, T_ATTRIBUTE); 2157c478bd9Sstevel@tonic-gate table_init(TAG_TID64_EX, "tid", pa_tid64_ex, T_ATTRIBUTE); 2167c478bd9Sstevel@tonic-gate table_init(TAG_TID_TYPE, "type", NOFUNC, T_ATTRIBUTE); 2177c478bd9Sstevel@tonic-gate table_init(TAG_IP, "ipadr", NOFUNC, T_ENCLOSED); 2187c478bd9Sstevel@tonic-gate table_init(TAG_IP_LOCAL, "local-port", pa_adr_u_short, T_ATTRIBUTE); 2197c478bd9Sstevel@tonic-gate table_init(TAG_IP_REMOTE, "remote-port", pa_adr_u_short, T_ATTRIBUTE); 2207c478bd9Sstevel@tonic-gate table_init(TAG_IP_ADR, "host", pa_ip_addr, T_ATTRIBUTE); 2217c478bd9Sstevel@tonic-gate 2227c478bd9Sstevel@tonic-gate table_initx(TAG_EVMOD, "event-modifier", "modifier", 2237c478bd9Sstevel@tonic-gate pa_event_modifier, T_ATTRIBUTE); 2247c478bd9Sstevel@tonic-gate table_initx(TAG_EVTYPE, "event-type", "event", 2257c478bd9Sstevel@tonic-gate pa_event_type, T_ATTRIBUTE); 2267c478bd9Sstevel@tonic-gate table_initx(TAG_TOKVERS, "token-version", "version", 2277c478bd9Sstevel@tonic-gate pa_adr_byte, T_ATTRIBUTE); 2287c478bd9Sstevel@tonic-gate 2297c478bd9Sstevel@tonic-gate table_init(TAG_ISO, "iso8601", NOFUNC, T_ATTRIBUTE); 2307c478bd9Sstevel@tonic-gate 2317c478bd9Sstevel@tonic-gate table_init(TAG_ERRVAL, "errval", NOFUNC, T_ATTRIBUTE); 2327c478bd9Sstevel@tonic-gate table_init(TAG_RETVAL, "retval", pa_adr_int32, T_ATTRIBUTE); 2337c478bd9Sstevel@tonic-gate 2347c478bd9Sstevel@tonic-gate table_init(TAG_SETTYPE, "set-type", pa_adr_string, T_ATTRIBUTE); 2357c478bd9Sstevel@tonic-gate /* Sub-element of groups & newgroups token: */ 2367c478bd9Sstevel@tonic-gate table_init(TAG_GROUPID, "gid", pa_gr_uid, T_ELEMENT); 2377c478bd9Sstevel@tonic-gate 2387c478bd9Sstevel@tonic-gate table_init(TAG_XID, "xid", pa_xid, T_ATTRIBUTE); 2397c478bd9Sstevel@tonic-gate table_init(TAG_XCUID, "xcreator-uid", pa_pw_uid, T_ATTRIBUTE); 2407c478bd9Sstevel@tonic-gate 2417c478bd9Sstevel@tonic-gate table_init(TAG_XSELTEXT, "x_sel_text", pa_adr_string, T_ELEMENT); 2427c478bd9Sstevel@tonic-gate table_init(TAG_XSELTYPE, "x_sel_type", pa_adr_string, T_ELEMENT); 2437c478bd9Sstevel@tonic-gate table_init(TAG_XSELDATA, "x_sel_data", pa_adr_string, T_ELEMENT); 2447c478bd9Sstevel@tonic-gate 2457c478bd9Sstevel@tonic-gate table_init(TAG_ARGNUM, "arg-num", pa_adr_byte, T_ATTRIBUTE); 2467c478bd9Sstevel@tonic-gate table_init(TAG_ARGVAL32, "value", pa_adr_int32hex, T_ATTRIBUTE); 2477c478bd9Sstevel@tonic-gate table_init(TAG_ARGVAL64, "value", pa_adr_int64hex, T_ATTRIBUTE); 2487c478bd9Sstevel@tonic-gate table_init(TAG_ARGDESC, "desc", pa_adr_string, T_ATTRIBUTE); 2497c478bd9Sstevel@tonic-gate 2507c478bd9Sstevel@tonic-gate table_init(TAG_MODE, "mode", pa_mode, T_ATTRIBUTE); 2517c478bd9Sstevel@tonic-gate table_init(TAG_FSID, "fsid", pa_adr_int32, T_ATTRIBUTE); 2527c478bd9Sstevel@tonic-gate table_init(TAG_NODEID32, "nodeid", pa_adr_int32, T_ATTRIBUTE); 2537c478bd9Sstevel@tonic-gate table_init(TAG_NODEID64, "nodeid", pa_adr_int64, T_ATTRIBUTE); 2547c478bd9Sstevel@tonic-gate table_init(TAG_DEVICE32, "device", pa_adr_u_int32, T_ATTRIBUTE); 2557c478bd9Sstevel@tonic-gate table_init(TAG_DEVICE64, "device", pa_adr_u_int64, T_ATTRIBUTE); 2567c478bd9Sstevel@tonic-gate 2577c478bd9Sstevel@tonic-gate table_init(TAG_SEQNUM, "seq-num", pa_adr_u_int32, T_ATTRIBUTE); 2587c478bd9Sstevel@tonic-gate table_init(TAG_ZONENAME, "name", pa_adr_string, T_ATTRIBUTE); 2597c478bd9Sstevel@tonic-gate table_init(TAG_ARGV, "argv", pa_cmd, T_ELEMENT); 2607c478bd9Sstevel@tonic-gate table_init(TAG_ARGE, "arge", pa_cmd, T_ELEMENT); 2617c478bd9Sstevel@tonic-gate table_init(TAG_ARG, "arg", pa_string, T_ELEMENT); 2627c478bd9Sstevel@tonic-gate table_init(TAG_ENV, "env", pa_string, T_ELEMENT); 2637c478bd9Sstevel@tonic-gate table_init(TAG_XAT, "xattr", pa_string, T_ELEMENT); 2647c478bd9Sstevel@tonic-gate 2657c478bd9Sstevel@tonic-gate table_init(TAG_RESULT, "result", NOFUNC, T_ATTRIBUTE); 2667c478bd9Sstevel@tonic-gate table_init(TAG_CUID, "creator-uid", pa_pw_uid, T_ATTRIBUTE); 2677c478bd9Sstevel@tonic-gate table_init(TAG_CGID, "creator-gid", pa_gr_uid, T_ATTRIBUTE); 2687c478bd9Sstevel@tonic-gate table_init(TAG_SEQ, "seq", pa_adr_u_int32, T_ATTRIBUTE); 2697c478bd9Sstevel@tonic-gate table_init(TAG_KEY, "key", pa_adr_int32hex, T_ATTRIBUTE); 2707c478bd9Sstevel@tonic-gate 2717c478bd9Sstevel@tonic-gate table_init(TAG_IPVERS, "version", pa_adr_charhex, T_ATTRIBUTE); 2727c478bd9Sstevel@tonic-gate table_init(TAG_IPSERV, "service_type", pa_adr_charhex, T_ATTRIBUTE); 2737c478bd9Sstevel@tonic-gate table_init(TAG_IPLEN, "len", pa_adr_short, T_ATTRIBUTE); 2747c478bd9Sstevel@tonic-gate table_init(TAG_IPID, "id", pa_adr_u_short, T_ATTRIBUTE); 2757c478bd9Sstevel@tonic-gate table_init(TAG_IPOFFS, "offset", pa_adr_u_short, T_ATTRIBUTE); 2767c478bd9Sstevel@tonic-gate table_init(TAG_IPTTL, "time_to_live", pa_adr_charhex, T_ATTRIBUTE); 2777c478bd9Sstevel@tonic-gate table_init(TAG_IPPROTO, "protocol", pa_adr_charhex, T_ATTRIBUTE); 2787c478bd9Sstevel@tonic-gate table_init(TAG_IPCKSUM, "cksum", pa_adr_u_short, T_ATTRIBUTE); 2797c478bd9Sstevel@tonic-gate table_init(TAG_IPSRC, "src_addr", pa_adr_int32hex, T_ATTRIBUTE); 2807c478bd9Sstevel@tonic-gate table_init(TAG_IPDEST, "dest_addr", pa_adr_int32hex, T_ATTRIBUTE); 2817c478bd9Sstevel@tonic-gate 2827c478bd9Sstevel@tonic-gate table_init(TAG_ACLTYPE, "type", NOFUNC, T_ATTRIBUTE); 2837c478bd9Sstevel@tonic-gate table_init(TAG_ACLVAL, "value", NOFUNC, T_ATTRIBUTE); 284a7746f66Stz204579 table_init(TAG_ACEMASK, "access_mask", NOFUNC, T_ATTRIBUTE); 285a7746f66Stz204579 table_init(TAG_ACEFLAGS, "flags", NOFUNC, T_ATTRIBUTE); 286a7746f66Stz204579 table_init(TAG_ACETYPE, "type", NOFUNC, T_ATTRIBUTE); 287a7746f66Stz204579 table_init(TAG_ACEID, "id", NOFUNC, T_ATTRIBUTE); 2887c478bd9Sstevel@tonic-gate table_init(TAG_SOCKTYPE, "type", pa_adr_shorthex, T_ATTRIBUTE); 2897c478bd9Sstevel@tonic-gate table_init(TAG_SOCKPORT, "port", pa_adr_shorthex, T_ATTRIBUTE); 2907c478bd9Sstevel@tonic-gate table_init(TAG_SOCKADDR, "addr", NOFUNC, T_ATTRIBUTE); 2917c478bd9Sstevel@tonic-gate 2927c478bd9Sstevel@tonic-gate table_init(TAG_SOCKEXDOM, "sock_domain", pa_adr_shorthex, T_ATTRIBUTE); 2937c478bd9Sstevel@tonic-gate table_init(TAG_SOCKEXTYPE, "sock_type", pa_adr_shorthex, T_ATTRIBUTE); 2947c478bd9Sstevel@tonic-gate table_init(TAG_SOCKEXLPORT, "lport", NOFUNC, T_ATTRIBUTE); 2957c478bd9Sstevel@tonic-gate table_init(TAG_SOCKEXLADDR, "laddr", NOFUNC, T_ATTRIBUTE); 2967c478bd9Sstevel@tonic-gate table_init(TAG_SOCKEXFPORT, "fport", NOFUNC, T_ATTRIBUTE); 2977c478bd9Sstevel@tonic-gate table_init(TAG_SOCKEXFADDR, "faddr", NOFUNC, T_ATTRIBUTE); 2987c478bd9Sstevel@tonic-gate 2997c478bd9Sstevel@tonic-gate table_init(TAG_IPCTYPE, "ipc-type", NOFUNC, T_ATTRIBUTE); 3007c478bd9Sstevel@tonic-gate table_init(TAG_IPCID, "ipc-id", pa_adr_int32, T_ATTRIBUTE); 3017c478bd9Sstevel@tonic-gate 3027c478bd9Sstevel@tonic-gate table_init(TAG_ARBPRINT, "print", NOFUNC, T_ATTRIBUTE); 3037c478bd9Sstevel@tonic-gate table_init(TAG_ARBTYPE, "type", NOFUNC, T_ATTRIBUTE); 3047c478bd9Sstevel@tonic-gate table_init(TAG_ARBCOUNT, "count", NOFUNC, T_ATTRIBUTE); 3057c478bd9Sstevel@tonic-gate 3067c478bd9Sstevel@tonic-gate table_init(TAG_HOSTID, "host", NOFUNC, T_ATTRIBUTE); 307*047f6e6fSgww table_init(TAG_USERNAME, "username", pa_adr_string, T_ATTRIBUTE); 3087c478bd9Sstevel@tonic-gate #endif /* _PRAUDIT */ 3097c478bd9Sstevel@tonic-gate } 310