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 _BSM_AUDIT_RECORD_H
27 #define _BSM_AUDIT_RECORD_H
28
29
30 #ifdef _KERNEL
31 #include <sys/priv.h>
32 #else
33 #include <priv.h>
34 #endif
35 #include <sys/socket.h>
36 #include <sys/acl.h>
37
38 #include <sys/tsol/label.h>
39
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43
172 #define AUT_ARG64 ((char)0x71)
173 #define AUT_RETURN64 ((char)0x72)
174 #define AUT_ATTR64 ((char)0x73)
175 #define AUT_HEADER64 ((char)0x74)
176 #define AUT_SUBJECT64 ((char)0x75)
177 #define AUT_PROCESS64 ((char)0x77)
178 #define AUT_OTHER_FILE64 ((char)0x78)
179
180 /*
181 * Extended network address token types
182 */
183
184 #define AUT_HEADER64_EX ((char)0x79)
185 #define AUT_SUBJECT32_EX ((char)0x7a)
186 #define AUT_PROCESS32_EX ((char)0x7b)
187 #define AUT_SUBJECT64_EX ((char)0x7c)
188 #define AUT_PROCESS64_EX ((char)0x7d)
189 #define AUT_IN_ADDR_EX ((char)0x7e)
190 #define AUT_SOCKET_EX ((char)0x7f)
191
192
193 /*
194 * Audit print suggestion types.
195 */
196
197 #define AUP_BINARY ((char)0)
198 #define AUP_OCTAL ((char)1)
199 #define AUP_DECIMAL ((char)2)
200 #define AUP_HEX ((char)3)
201 #define AUP_STRING ((char)4)
202
203 /*
204 * Audit data member types.
205 */
206
207 #define AUR_BYTE ((char)0)
208 #define AUR_CHAR ((char)0)
209 #define AUR_SHORT ((char)1)
210 #define AUR_INT ((char)2)
211 #define AUR_INT32 ((char)2)
|
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 _BSM_AUDIT_RECORD_H
29 #define _BSM_AUDIT_RECORD_H
30
31
32 #ifdef _KERNEL
33 #include <sys/priv.h>
34 #else
35 #include <priv.h>
36 #endif
37 #include <sys/socket.h>
38 #include <sys/acl.h>
39
40 #include <sys/tsol/label.h>
41
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45
174 #define AUT_ARG64 ((char)0x71)
175 #define AUT_RETURN64 ((char)0x72)
176 #define AUT_ATTR64 ((char)0x73)
177 #define AUT_HEADER64 ((char)0x74)
178 #define AUT_SUBJECT64 ((char)0x75)
179 #define AUT_PROCESS64 ((char)0x77)
180 #define AUT_OTHER_FILE64 ((char)0x78)
181
182 /*
183 * Extended network address token types
184 */
185
186 #define AUT_HEADER64_EX ((char)0x79)
187 #define AUT_SUBJECT32_EX ((char)0x7a)
188 #define AUT_PROCESS32_EX ((char)0x7b)
189 #define AUT_SUBJECT64_EX ((char)0x7c)
190 #define AUT_PROCESS64_EX ((char)0x7d)
191 #define AUT_IN_ADDR_EX ((char)0x7e)
192 #define AUT_SOCKET_EX ((char)0x7f)
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)
200
201 /*
202 * Audit print suggestion types.
203 */
204
205 #define AUP_BINARY ((char)0)
206 #define AUP_OCTAL ((char)1)
207 #define AUP_DECIMAL ((char)2)
208 #define AUP_HEX ((char)3)
209 #define AUP_STRING ((char)4)
210
211 /*
212 * Audit data member types.
213 */
214
215 #define AUR_BYTE ((char)0)
216 #define AUR_CHAR ((char)0)
217 #define AUR_SHORT ((char)1)
218 #define AUR_INT ((char)2)
219 #define AUR_INT32 ((char)2)
|