Deleted Added
full compact
libbsm.h (162503) libbsm.h (162621)
1/*
2 * Copyright (c) 2004 Apple Computer, 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 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
1/*
2 * Copyright (c) 2004 Apple Computer, 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 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $P4: //depot/projects/trustedbsd/openbsm/bsm/libbsm.h#29 $
29 * $P4: //depot/projects/trustedbsd/openbsm/bsm/libbsm.h#30 $
30 */
31
32#ifndef _LIBBSM_H_
33#define _LIBBSM_H_
34
35/*
36 * NB: definitions, etc., marked with "OpenSSH compatibility" were introduced
37 * solely to allow OpenSSH to compile; Darwin/Apple code should not use them.

--- 35 unchanged lines hidden (view full) ---

73
74#define AUDIT_EVENT_FILE "/etc/security/audit_event"
75#define AUDIT_CLASS_FILE "/etc/security/audit_class"
76#define AUDIT_CONTROL_FILE "/etc/security/audit_control"
77#define AUDIT_USER_FILE "/etc/security/audit_user"
78
79#define DIR_CONTROL_ENTRY "dir"
80#define MINFREE_CONTROL_ENTRY "minfree"
30 */
31
32#ifndef _LIBBSM_H_
33#define _LIBBSM_H_
34
35/*
36 * NB: definitions, etc., marked with "OpenSSH compatibility" were introduced
37 * solely to allow OpenSSH to compile; Darwin/Apple code should not use them.

--- 35 unchanged lines hidden (view full) ---

73
74#define AUDIT_EVENT_FILE "/etc/security/audit_event"
75#define AUDIT_CLASS_FILE "/etc/security/audit_class"
76#define AUDIT_CONTROL_FILE "/etc/security/audit_control"
77#define AUDIT_USER_FILE "/etc/security/audit_user"
78
79#define DIR_CONTROL_ENTRY "dir"
80#define MINFREE_CONTROL_ENTRY "minfree"
81#define FILESZ_CONTROL_ENTRY "filesz"
81#define FLAGS_CONTROL_ENTRY "flags"
82#define NA_CONTROL_ENTRY "naflags"
83#define POLICY_CONTROL_ENTRY "policy"
84
85#define AU_CLASS_NAME_MAX 8
86#define AU_CLASS_DESC_MAX 72
87#define AU_EVENT_NAME_MAX 30
88#define AU_EVENT_DESC_MAX 50

--- 625 unchanged lines hidden (view full) ---

714
715/*
716 * Functions relating to querying audit control information.
717 */
718void setac(void);
719void endac(void);
720int getacdir(char *name, int len);
721int getacmin(int *min_val);
82#define FLAGS_CONTROL_ENTRY "flags"
83#define NA_CONTROL_ENTRY "naflags"
84#define POLICY_CONTROL_ENTRY "policy"
85
86#define AU_CLASS_NAME_MAX 8
87#define AU_CLASS_DESC_MAX 72
88#define AU_EVENT_NAME_MAX 30
89#define AU_EVENT_DESC_MAX 50

--- 625 unchanged lines hidden (view full) ---

715
716/*
717 * Functions relating to querying audit control information.
718 */
719void setac(void);
720void endac(void);
721int getacdir(char *name, int len);
722int getacmin(int *min_val);
723int getacfilesz(size_t *size_val);
722int getacflg(char *auditstr, int len);
723int getacna(char *auditstr, int len);
724int getacpol(char *auditstr, size_t len);
725int getauditflagsbin(char *auditstr, au_mask_t *masks);
726int getauditflagschar(char *auditstr, au_mask_t *masks,
727 int verbose);
728int au_preselect(au_event_t event, au_mask_t *mask_p,
729 int sorf, int flag);

--- 456 unchanged lines hidden ---
724int getacflg(char *auditstr, int len);
725int getacna(char *auditstr, int len);
726int getacpol(char *auditstr, size_t len);
727int getauditflagsbin(char *auditstr, au_mask_t *masks);
728int getauditflagschar(char *auditstr, au_mask_t *masks,
729 int verbose);
730int au_preselect(au_event_t event, au_mask_t *mask_p,
731 int sorf, int flag);

--- 456 unchanged lines hidden ---