8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / auditd_plugins / syslog / sysplugin.h
blob71b2471f7ca2799a9fc38eb753add32199267fcd
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _SYSPLUGIN_H
28 #define _SYSPLUGIN_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
36 #include <sys/types.h>
37 #include <bsm/audit.h>
39 struct selected_fields {
40 /* from header token */
41 au_event_t sf_eventid; /* 0 if no value */
42 uint32_t sf_reclen; /* 0 if no value */
44 /* from exit or return token */
45 int sf_pass; /* 0 no value, -1 fail, 1 pass */
47 /* from subject token */
48 uint32_t sf_asid; /* 0 no value */
49 uid_t sf_auid; /* -2 no value, > -1 otherwise */
50 uid_t sf_euid; /* -2 no value, > -1 otherwise */
51 gid_t sf_egid; /* -2 no value, > -1 otherwise */
52 au_tid_addr_t sf_tid; /* tid.at_type = 0 no value */
54 /* from process token */
55 uid_t sf_pauid; /* -2 no value */
56 uid_t sf_peuid; /* -2 no value */
58 /* data that may be truncated goes after this point */
60 /* from uauth token */
61 size_t sf_uauthlen;
62 char *sf_uauth; /* NULL no value */
64 /* from text token */
65 size_t sf_textlen;
66 char *sf_text; /* NULL no value */
68 /* from path and atpath token */
69 size_t sf_pathlen;
70 char *sf_path; /* NULL no value */
71 size_t sf_atpathlen;
72 char *sf_atpath; /* NULL no value */
74 /* from sequence token */
75 int32_t sf_sequence; /* -1 no value */
77 /* from zonename token */
78 size_t sf_zonelen;
79 char *sf_zonename; /* NULL no value */
81 typedef struct selected_fields tosyslog_t;
84 #ifdef __cplusplus
86 #endif
88 #endif /* _SYSPLUGIN_H */