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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/c2/audit_record.h
          +++ new/usr/src/uts/common/c2/audit_record.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  24   26   */
  25   27  
  26   28  #ifndef _BSM_AUDIT_RECORD_H
  27   29  #define _BSM_AUDIT_RECORD_H
  28   30  
  29   31  
  30   32  #ifdef _KERNEL
  31   33  #include <sys/priv.h>
  32   34  #else
  33   35  #include <priv.h>
↓ open down ↓ 148 lines elided ↑ open up ↑
 182  184   */
 183  185  
 184  186  #define AUT_HEADER64_EX         ((char)0x79)
 185  187  #define AUT_SUBJECT32_EX        ((char)0x7a)
 186  188  #define AUT_PROCESS32_EX        ((char)0x7b)
 187  189  #define AUT_SUBJECT64_EX        ((char)0x7c)
 188  190  #define AUT_PROCESS64_EX        ((char)0x7d)
 189  191  #define AUT_IN_ADDR_EX          ((char)0x7e)
 190  192  #define AUT_SOCKET_EX           ((char)0x7f)
 191  193  
      194 +/*
      195 + * Can't do >= 0x80 because these are chars. 0x16/0x17 seem to be free here,
      196 + * but who knows if they have historical uses
      197 + */
      198 +#define AUT_ACCESS_MASK         ((char)0x16)
      199 +#define AUT_WSID                ((char)0x17)
 192  200  
 193  201  /*
 194  202   * Audit print suggestion types.
 195  203   */
 196  204  
 197  205  #define AUP_BINARY      ((char)0)
 198  206  #define AUP_OCTAL       ((char)1)
 199  207  #define AUP_DECIMAL     ((char)2)
 200  208  #define AUP_HEX         ((char)3)
 201  209  #define AUP_STRING      ((char)4)
↓ open down ↓ 274 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX