Print this page
11037 SMB File access audit logging (reserve IDs)


   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  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.


  24  */
  25 
  26 #ifndef _TOKTABLE_H
  27 #define _TOKTABLE_H
  28 
  29 #ifdef __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 /*
  34  * Solaris Audit Token Table.
  35  */
  36 
  37 typedef struct token_desc {
  38         char    *t_name;        /* name of the token */
  39         char    *t_tagname;     /* tag name */
  40         int     (*func)();      /* token processing function */
  41         short   t_type;         /* token or tag type */
  42 } token_desc_t;
  43 


 139         TAG_SOCKEXLADDR,                /* with socket_ex token */
 140         TAG_SOCKEXFPORT,                /* with socket_ex token */
 141         TAG_SOCKEXFADDR,                /* with socket_ex token */
 142         TAG_IPCTYPE,                    /* with IPC token */
 143         TAG_IPCID,                      /* with IPC token */
 144         TAG_ARBPRINT,                   /* with arbitrary (data) token */
 145         TAG_ARBTYPE,                    /* with arbitrary (data) token */
 146         TAG_ARBCOUNT,                   /* with arbitrary (data) token */
 147         TAG_HOSTID,                     /* with extended header token */
 148         TAG_ZONENAME,                   /* with zonename token */
 149         TAG_TID_TYPE,                   /* with tid token */
 150         TAG_IP,                         /* with tid token, type=ip */
 151         TAG_IP_LOCAL,                   /* with tid token, type=ip */
 152         TAG_IP_REMOTE,                  /* with tid token, type=ip */
 153         TAG_IP_ADR,                     /* with tid token, type=ip */
 154         TAG_ACEMASK,                    /* with ace token */
 155         TAG_ACEFLAGS,                   /* with ace token */
 156         TAG_ACETYPE,                    /* with ace token */
 157         TAG_ACEID,                      /* with ace token */
 158         TAG_USERNAME,                   /* with user token */

 159         MAXTAG
 160 };
 161 
 162 
 163 /*
 164  * These tokens are the same for all versions of Solaris
 165  */
 166 
 167 /*
 168  * Control tokens
 169  */
 170 
 171 extern int      file_token();
 172 extern int      trailer_token();
 173 extern int      header_token();
 174 extern int      header32_ex_token();
 175 
 176 /*
 177  * Data tokens
 178  */




   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  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  *
  25  * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  26  */
  27 
  28 #ifndef _TOKTABLE_H
  29 #define _TOKTABLE_H
  30 
  31 #ifdef __cplusplus
  32 extern "C" {
  33 #endif
  34 
  35 /*
  36  * Solaris Audit Token Table.
  37  */
  38 
  39 typedef struct token_desc {
  40         char    *t_name;        /* name of the token */
  41         char    *t_tagname;     /* tag name */
  42         int     (*func)();      /* token processing function */
  43         short   t_type;         /* token or tag type */
  44 } token_desc_t;
  45 


 141         TAG_SOCKEXLADDR,                /* with socket_ex token */
 142         TAG_SOCKEXFPORT,                /* with socket_ex token */
 143         TAG_SOCKEXFADDR,                /* with socket_ex token */
 144         TAG_IPCTYPE,                    /* with IPC token */
 145         TAG_IPCID,                      /* with IPC token */
 146         TAG_ARBPRINT,                   /* with arbitrary (data) token */
 147         TAG_ARBTYPE,                    /* with arbitrary (data) token */
 148         TAG_ARBCOUNT,                   /* with arbitrary (data) token */
 149         TAG_HOSTID,                     /* with extended header token */
 150         TAG_ZONENAME,                   /* with zonename token */
 151         TAG_TID_TYPE,                   /* with tid token */
 152         TAG_IP,                         /* with tid token, type=ip */
 153         TAG_IP_LOCAL,                   /* with tid token, type=ip */
 154         TAG_IP_REMOTE,                  /* with tid token, type=ip */
 155         TAG_IP_ADR,                     /* with tid token, type=ip */
 156         TAG_ACEMASK,                    /* with ace token */
 157         TAG_ACEFLAGS,                   /* with ace token */
 158         TAG_ACETYPE,                    /* with ace token */
 159         TAG_ACEID,                      /* with ace token */
 160         TAG_USERNAME,                   /* with user token */
 161         TAG_WSID,                       /* with wsid token */
 162         MAXTAG
 163 };
 164 
 165 
 166 /*
 167  * These tokens are the same for all versions of Solaris
 168  */
 169 
 170 /*
 171  * Control tokens
 172  */
 173 
 174 extern int      file_token();
 175 extern int      trailer_token();
 176 extern int      header_token();
 177 extern int      header32_ex_token();
 178 
 179 /*
 180  * Data tokens
 181  */