1 0 stevel /* 2 0 stevel * CDDL HEADER START 3 0 stevel * 4 0 stevel * The contents of this file are subject to the terms of the 5 0 stevel * Common Development and Distribution License, Version 1.0 only 6 0 stevel * (the "License"). You may not use this file except in compliance 7 0 stevel * with the License. 8 0 stevel * 9 0 stevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 0 stevel * or http://www.opensolaris.org/os/licensing. 11 0 stevel * See the License for the specific language governing permissions 12 0 stevel * and limitations under the License. 13 0 stevel * 14 0 stevel * When distributing Covered Code, include this CDDL HEADER in each 15 0 stevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 0 stevel * If applicable, add the following below this CDDL HEADER, with the 17 0 stevel * fields enclosed by brackets "[]" replaced with your own identifying 18 0 stevel * information: Portions Copyright [yyyy] [name of copyright owner] 19 0 stevel * 20 0 stevel * CDDL HEADER END 21 0 stevel */ 22 0 stevel /* 23 0 stevel * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24 0 stevel * Use is subject to license terms. 25 0 stevel * 26 0 stevel * defines auditd interface uts/common/c2; project private. 27 0 stevel */ 28 0 stevel 29 0 stevel #ifndef _AUDIT_DOOR_INFC_H 30 0 stevel #define _AUDIT_DOOR_INFC_H 31 0 stevel 32 0 stevel #pragma ident "%Z%%M% %I% %E% SMI" 33 0 stevel 34 0 stevel #ifdef __cplusplus 35 0 stevel extern "C" { 36 0 stevel #endif 37 0 stevel 38 0 stevel /* 39 0 stevel * door buffer 40 0 stevel */ 41 0 stevel 42 0 stevel #define AU_DBUF_COMPLETE 0 /* buffer is a complete record */ 43 0 stevel #define AU_DBUF_FIRST 1 /* first of two or more buffers */ 44 0 stevel #define AU_DBUF_MIDDLE 2 /* intermediate of 3 or more bufs */ 45 0 stevel #define AU_DBUF_LAST 3 /* last of two or more buffers */ 46 0 stevel #define AU_DBUF_NOTIFY 0x8000 /* buffer contains a control message */ 47 0 stevel #define AU_DBUF_POLICY 1 /* control msg: audit policy changed */ 48 0 stevel #define AU_DBUF_SHUTDOWN 2 /* control msg: going down */ 49 0 stevel 50 0 stevel /* 51 0 stevel * control messages from the kernel to auditd 52 0 stevel * 53 0 stevel * POLICY: the new audit policy mask is in aub_buf at a uint32_t 54 0 stevel */ 55 0 stevel 56 0 stevel 57 0 stevel #define AU_DMARGIN 8 58 0 stevel /* 59 0 stevel * The actual length of buf is based on the dynamic allocation 60 0 stevel * for this structure; any positive value for AU_DMARGIN would do. 61 0 stevel */ 62 0 stevel typedef struct aub { 63 0 stevel uint32_t aub_size; 64 0 stevel uint32_t aub_type; /* flags AU_DBUF_* */ 65 0 stevel char aub_buf[AU_DMARGIN]; 66 0 stevel } au_dbuf_t; 67 0 stevel 68 0 stevel #define AU_DBUF_HEADER offsetof(au_dbuf_t, aub_buf[0]) 69 0 stevel 70 0 stevel 71 0 stevel #ifdef __cplusplus 72 0 stevel } 73 0 stevel #endif 74 0 stevel 75 0 stevel #endif /* _AUDIT_DOOR_INFC_H */ 76