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#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;
176typedef u_int64_t au_asflgs_t __attribute__ ((aligned (8)));
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. */
210 au_asflgs_t ai_flags; /* Audit session flags. */
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. */
229 au_asflgs_t ap_flags; /* Audit session flags. */
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 ---
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#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;
176typedef u_int64_t au_asflgs_t __attribute__ ((aligned (8)));
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. */
210 au_asflgs_t ai_flags; /* Audit session flags. */
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. */
229 au_asflgs_t ap_flags; /* Audit session flags. */
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 ---