4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
25 * Do not add to this file unless it is to cover an existing private
26 * interface and do not write new code that depends on this header
27 * file or the interfaces contained in it.
29 * This is a private interface, subject to change. It exists solely
30 * as a way of making certain existing clients of libbsm lint clean.
31 * As the related interfaces are replaced with the adt.* interfaces,
32 * this header should shrink to zero.
35 #ifndef _AUDIT_PRIVATE_H
36 #define _AUDIT_PRIVATE_H
38 #pragma ident "%Z%%M% %I% %E% SMI"
44 #include <bsm/libbsm.h>
52 extern int audit_settid(int);
59 extern void audit_allocate_argv(int, int, char *[]);
60 extern int audit_allocate_record(int);
61 extern void audit_allocate_list(char *);
62 extern void audit_allocate_device(char *);
69 extern void audit_ftpd_bad_pw(char *uname
);
70 extern void audit_ftpd_excluded(char *uname
);
71 extern void audit_ftpd_failure(char *uname
);
72 extern void audit_ftpd_no_anon(void);
73 extern void audit_ftpd_success(char *uname
);
74 extern void audit_ftpd_unknown(char *uname
);
75 extern void audit_ftpd_logout(void);
83 extern int audit_at_delete(char *, char *, int);
84 extern int audit_at_create(char *, int);
91 extern int audit_crontab_modify(char *, char *, int);
92 extern int audit_crontab_delete(char *, int);
93 extern int audit_crontab_not_allowed(uid_t
, char *);
94 extern int audit_crontab_process_not_audited(void);
102 extern int audit_cron_session(char *, char *, uid_t
, gid_t
, char *);
103 extern void audit_cron_new_job(char *, int, void *);
104 extern void audit_cron_bad_user(char *);
105 extern void audit_cron_user_acct_expired(char *);
106 extern int audit_cron_create_anc_file(char *, char *, char *, uid_t
);
107 extern int audit_cron_delete_anc_file(char *, char *);
108 extern int audit_cron_is_anc_name(char *);
109 extern int audit_cron_mode(void);
110 extern char *audit_cron_make_anc_name(char *);
111 extern int audit_cron_setinfo(char *, auditinfo_addr_t
*);
118 extern void audit_mountd_setup(void);
119 extern void audit_mountd_mount(char *, char *, int);
120 extern void audit_mountd_umount(char *, char *);
127 extern int audit_halt_setup(int, char **);
128 extern int audit_halt_success(void);
129 extern int audit_halt_fail(void);
136 extern int audit_shutdown_setup(int, char **);
137 extern int audit_shutdown_success(void);
138 extern int audit_shutdown_fail(void);
145 extern int audit_reboot_setup(void);
146 extern int audit_reboot_success(void);
147 extern int audit_reboot_fail(void);
153 #endif /* _AUDIT_PRIVATE_H */