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 _SYSTOKEN_H
27 #define _SYSTOKEN_H
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #include "sysplugin.h"
34 #include <bsm/adt.h>
35
36 /*
37 * parse_context -- doc and cur are for XML input, chunk and
38 * remaining for "plain text input, i.e., the traditiona
39 * output from praudit
40 */
41
42 struct parse_context {
43 adr_t adr; /* input buffer pointers */
143 extern void argument64_token(adr_t *, parse_context_t *);
144 extern void return64_token(adr_t *, parse_context_t *);
145 extern void attribute64_token(adr_t *, parse_context_t *);
146 extern void header64_token(adr_t *, parse_context_t *);
147 extern void subject64_token(adr_t *, parse_context_t *);
148 extern void process64_token(adr_t *, parse_context_t *);
149 extern void file64_token(adr_t *, parse_context_t *);
150
151 /*
152 * Extended network address tokens
153 */
154
155 extern void header64_ex_token();
156 extern void subject32_ex_token();
157 extern void process32_ex_token();
158 extern void subject64_ex_token(adr_t *, parse_context_t *);
159 extern void process64_ex_token(adr_t *, parse_context_t *);
160 extern void ip_addr_ex_token(adr_t *, parse_context_t *);
161 extern void socket_ex_token(adr_t *, parse_context_t *);
162 extern void tid_token(adr_t *, parse_context_t *);
163 #endif
164
165 #ifdef __cplusplus
166 }
167 #endif
168
169 #endif /* _SYSTOKEN_H */
|
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 _SYSTOKEN_H
29 #define _SYSTOKEN_H
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 #include "sysplugin.h"
36 #include <bsm/adt.h>
37
38 /*
39 * parse_context -- doc and cur are for XML input, chunk and
40 * remaining for "plain text input, i.e., the traditiona
41 * output from praudit
42 */
43
44 struct parse_context {
45 adr_t adr; /* input buffer pointers */
145 extern void argument64_token(adr_t *, parse_context_t *);
146 extern void return64_token(adr_t *, parse_context_t *);
147 extern void attribute64_token(adr_t *, parse_context_t *);
148 extern void header64_token(adr_t *, parse_context_t *);
149 extern void subject64_token(adr_t *, parse_context_t *);
150 extern void process64_token(adr_t *, parse_context_t *);
151 extern void file64_token(adr_t *, parse_context_t *);
152
153 /*
154 * Extended network address tokens
155 */
156
157 extern void header64_ex_token();
158 extern void subject32_ex_token();
159 extern void process32_ex_token();
160 extern void subject64_ex_token(adr_t *, parse_context_t *);
161 extern void process64_ex_token(adr_t *, parse_context_t *);
162 extern void ip_addr_ex_token(adr_t *, parse_context_t *);
163 extern void socket_ex_token(adr_t *, parse_context_t *);
164 extern void tid_token(adr_t *, parse_context_t *);
165 extern void access_mask_token(parse_context_t *)
166 extern void wsid_token(parse_context_t *)
167 #endif
168
169 #ifdef __cplusplus
170 }
171 #endif
172
173 #endif /* _SYSTOKEN_H */
|