Print this page
NEX-13644 File access audit logging
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
        
@@ -19,10 +19,12 @@
  * CDDL HEADER END
  */
 /*
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  */
 
 #ifndef _AUDITRD_H
 #define _AUDITRD_H
 
@@ -60,10 +62,11 @@
 uid_t   obj_owner;              /* object owner */
 int     subj_id;                /* subject identifier  */
 char    ipc_type;               /* 'o' object type - tell what type of IPC */
 scf_pattern_t fmri;             /* 'o' fmri value */
 uid_t   obj_user;               /* 'o' user value */
+char    *wsid;                  /* 'o' wsid value */
 
 /*
  * File selection options
  */
 char    *f_machine;             /* 'M' machine (suffix) type */
@@ -82,11 +85,10 @@
 
 /*
  * Global error reporting
  */
 char    *error_str;             /* current error message */
-char    errbuf[256];            /* for creating error messages with sprintf */
 char    *ar = "auditreduce:";
 static int      root_pid;       /* remember original process's pid */
 
 /*
  * Global control blocks