libbsm.h (187214) | libbsm.h (189279) |
---|---|
1/*- | 1/*- |
2 * Copyright (c) 2004-2008 Apple Inc. | 2 * Copyright (c) 2004-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 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright --- 10 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 * | 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 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright --- 10 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#41 $ | 29 * $P4: //depot/projects/trustedbsd/openbsm/bsm/libbsm.h#42 $ |
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. --- 33 unchanged lines hidden (view full) --- 71#define AU_PRS_FAILURE 2 72#define AU_PRS_BOTH (AU_PRS_SUCCESS|AU_PRS_FAILURE) 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 | 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. --- 33 unchanged lines hidden (view full) --- 71#define AU_PRS_FAILURE 2 72#define AU_PRS_BOTH (AU_PRS_SUCCESS|AU_PRS_FAILURE) 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" 82#define FLAGS_CONTROL_ENTRY "flags" 83#define NA_CONTROL_ENTRY "naflags" 84#define POLICY_CONTROL_ENTRY "policy" | 79#define DIR_CONTROL_ENTRY "dir" 80#define MINFREE_CONTROL_ENTRY "minfree" 81#define FILESZ_CONTROL_ENTRY "filesz" 82#define FLAGS_CONTROL_ENTRY "flags" 83#define NA_CONTROL_ENTRY "naflags" 84#define POLICY_CONTROL_ENTRY "policy" |
85#define AUDIT_HOST_CONTROL_ENTRY "host" | 85#define AUDIT_HOST_CONTROL_ENTRY "host" |
86#define EXPIRE_AFTER_CONTROL_ENTRY "expire-after" |
|
86 87#define AU_CLASS_NAME_MAX 8 88#define AU_CLASS_DESC_MAX 72 89#define AU_EVENT_NAME_MAX 30 90#define AU_EVENT_DESC_MAX 50 91#define AU_USER_NAME_MAX 50 92#define AU_LINE_MAX 256 93#define MAX_AUDITSTRING_LEN 256 --- 667 unchanged lines hidden (view full) --- 761void endac(void); 762int getacdir(char *name, int len); 763int getacmin(int *min_val); 764int getacfilesz(size_t *size_val); 765int getacflg(char *auditstr, int len); 766int getacna(char *auditstr, int len); 767int getacpol(char *auditstr, size_t len); 768int getachost(char *auditstr, size_t len); | 87 88#define AU_CLASS_NAME_MAX 8 89#define AU_CLASS_DESC_MAX 72 90#define AU_EVENT_NAME_MAX 30 91#define AU_EVENT_DESC_MAX 50 92#define AU_USER_NAME_MAX 50 93#define AU_LINE_MAX 256 94#define MAX_AUDITSTRING_LEN 256 --- 667 unchanged lines hidden (view full) --- 762void endac(void); 763int getacdir(char *name, int len); 764int getacmin(int *min_val); 765int getacfilesz(size_t *size_val); 766int getacflg(char *auditstr, int len); 767int getacna(char *auditstr, int len); 768int getacpol(char *auditstr, size_t len); 769int getachost(char *auditstr, size_t len); |
770int getacexpire(int *andflg, time_t *age, size_t *size); |
|
769int getauditflagsbin(char *auditstr, au_mask_t *masks); 770int getauditflagschar(char *auditstr, au_mask_t *masks, 771 int verbose); 772int au_preselect(au_event_t event, au_mask_t *mask_p, 773 int sorf, int flag); 774ssize_t au_poltostr(long policy, size_t maxsize, char *buf); 775int au_strtopol(const char *polstr, long *policy); 776 --- 489 unchanged lines hidden --- | 771int getauditflagsbin(char *auditstr, au_mask_t *masks); 772int getauditflagschar(char *auditstr, au_mask_t *masks, 773 int verbose); 774int au_preselect(au_event_t event, au_mask_t *mask_p, 775 int sorf, int flag); 776ssize_t au_poltostr(long policy, size_t maxsize, char *buf); 777int au_strtopol(const char *polstr, long *policy); 778 --- 489 unchanged lines hidden --- |