audit.h (191270) | audit.h (195740) |
---|---|
1/*- 2 * Copyright (c) 2005-2009 Apple Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 12 unchanged lines hidden (view full) --- 21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2005-2009 Apple Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 12 unchanged lines hidden (view full) --- 21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * |
29 * P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit.h#9 30 * $FreeBSD: head/sys/bsm/audit.h 191270 2009-04-19 14:53:17Z rwatson $ | 29 * P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit.h#10 30 * $FreeBSD: head/sys/bsm/audit.h 195740 2009-07-17 14:02:20Z rwatson $ |
31 */ 32 33#ifndef _BSM_AUDIT_H 34#define _BSM_AUDIT_H 35 36#include <sys/param.h> 37#include <sys/types.h> 38 --- 129 unchanged lines hidden (view full) --- 168 169__BEGIN_DECLS 170 171typedef uid_t au_id_t; 172typedef pid_t au_asid_t; 173typedef u_int16_t au_event_t; 174typedef u_int16_t au_emod_t; 175typedef u_int32_t au_class_t; | 31 */ 32 33#ifndef _BSM_AUDIT_H 34#define _BSM_AUDIT_H 35 36#include <sys/param.h> 37#include <sys/types.h> 38 --- 129 unchanged lines hidden (view full) --- 168 169__BEGIN_DECLS 170 171typedef uid_t au_id_t; 172typedef pid_t au_asid_t; 173typedef u_int16_t au_event_t; 174typedef u_int16_t au_emod_t; 175typedef u_int32_t au_class_t; |
176typedef u_int64_t au_asflgs_t __attribute__ ((aligned (8))); |
|
176 177struct au_tid { 178 dev_t port; 179 u_int32_t machine; 180}; 181typedef struct au_tid au_tid_t; 182 183struct au_tid_addr { --- 17 unchanged lines hidden (view full) --- 201}; 202typedef struct auditinfo auditinfo_t; 203 204struct auditinfo_addr { 205 au_id_t ai_auid; /* Audit user ID. */ 206 au_mask_t ai_mask; /* Audit masks. */ 207 au_tid_addr_t ai_termid; /* Terminal ID. */ 208 au_asid_t ai_asid; /* Audit session ID. */ | 177 178struct au_tid { 179 dev_t port; 180 u_int32_t machine; 181}; 182typedef struct au_tid au_tid_t; 183 184struct au_tid_addr { --- 17 unchanged lines hidden (view full) --- 202}; 203typedef struct auditinfo auditinfo_t; 204 205struct auditinfo_addr { 206 au_id_t ai_auid; /* Audit user ID. */ 207 au_mask_t ai_mask; /* Audit masks. */ 208 au_tid_addr_t ai_termid; /* Terminal ID. */ 209 au_asid_t ai_asid; /* Audit session ID. */ |
209 u_int64_t ai_flags; /* Audit session flags. */ | 210 au_asflgs_t ai_flags; /* Audit session flags. */ |
210}; 211typedef struct auditinfo_addr auditinfo_addr_t; 212 213struct auditpinfo { 214 pid_t ap_pid; /* ID of target process. */ 215 au_id_t ap_auid; /* Audit user ID. */ 216 au_mask_t ap_mask; /* Audit masks. */ 217 au_tid_t ap_termid; /* Terminal ID. */ 218 au_asid_t ap_asid; /* Audit session ID. */ 219}; 220typedef struct auditpinfo auditpinfo_t; 221 222struct auditpinfo_addr { 223 pid_t ap_pid; /* ID of target process. */ 224 au_id_t ap_auid; /* Audit user ID. */ 225 au_mask_t ap_mask; /* Audit masks. */ 226 au_tid_addr_t ap_termid; /* Terminal ID. */ 227 au_asid_t ap_asid; /* Audit session ID. */ | 211}; 212typedef struct auditinfo_addr auditinfo_addr_t; 213 214struct auditpinfo { 215 pid_t ap_pid; /* ID of target process. */ 216 au_id_t ap_auid; /* Audit user ID. */ 217 au_mask_t ap_mask; /* Audit masks. */ 218 au_tid_t ap_termid; /* Terminal ID. */ 219 au_asid_t ap_asid; /* Audit session ID. */ 220}; 221typedef struct auditpinfo auditpinfo_t; 222 223struct auditpinfo_addr { 224 pid_t ap_pid; /* ID of target process. */ 225 au_id_t ap_auid; /* Audit user ID. */ 226 au_mask_t ap_mask; /* Audit masks. */ 227 au_tid_addr_t ap_termid; /* Terminal ID. */ 228 au_asid_t ap_asid; /* Audit session ID. */ |
228 u_int64_t ap_flags; /* Audit session flags. */ | 229 au_asflgs_t ap_flags; /* Audit session flags. */ |
229}; 230typedef struct auditpinfo_addr auditpinfo_addr_t; 231 232struct au_session { 233 auditinfo_addr_t *as_aia_p; /* Ptr to full audit info. */ 234 au_mask_t as_mask; /* Process Audit Masks. */ 235}; 236typedef struct au_session au_session_t; --- 91 unchanged lines hidden --- | 230}; 231typedef struct auditpinfo_addr auditpinfo_addr_t; 232 233struct au_session { 234 auditinfo_addr_t *as_aia_p; /* Ptr to full audit info. */ 235 au_mask_t as_mask; /* Process Audit Masks. */ 236}; 237typedef struct au_session au_session_t; --- 91 unchanged lines hidden --- |