1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * CDDL HEADER START
3*0Sstevel@tonic-gate  *
4*0Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate  * with the License.
8*0Sstevel@tonic-gate  *
9*0Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*0Sstevel@tonic-gate  * and limitations under the License.
13*0Sstevel@tonic-gate  *
14*0Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * CDDL HEADER END
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate /*
23*0Sstevel@tonic-gate  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24*0Sstevel@tonic-gate  * Use is subject to license terms.
25*0Sstevel@tonic-gate  *
26*0Sstevel@tonic-gate  * Do not add to this file unless it is to cover an existing private
27*0Sstevel@tonic-gate  * interface and do not write new code that depends on this header
28*0Sstevel@tonic-gate  * file or the interfaces contained in it.
29*0Sstevel@tonic-gate  *
30*0Sstevel@tonic-gate  * This is a private interface, subject to change.  It exists solely
31*0Sstevel@tonic-gate  * as a way of making certain existing clients of libbsm lint clean.
32*0Sstevel@tonic-gate  * As the related interfaces are replaced with the adt.* interfaces,
33*0Sstevel@tonic-gate  * this header should shrink to zero.
34*0Sstevel@tonic-gate  */
35*0Sstevel@tonic-gate 
36*0Sstevel@tonic-gate #ifndef _AUDIT_PRIVATE_H
37*0Sstevel@tonic-gate #define	_AUDIT_PRIVATE_H
38*0Sstevel@tonic-gate 
39*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
40*0Sstevel@tonic-gate 
41*0Sstevel@tonic-gate #ifdef	__cplusplus
42*0Sstevel@tonic-gate extern "C" {
43*0Sstevel@tonic-gate #endif
44*0Sstevel@tonic-gate 
45*0Sstevel@tonic-gate #include <bsm/libbsm.h>
46*0Sstevel@tonic-gate #include <pwd.h>
47*0Sstevel@tonic-gate 
48*0Sstevel@tonic-gate /*
49*0Sstevel@tonic-gate  * audit_settid.c
50*0Sstevel@tonic-gate  * interface users
51*0Sstevel@tonic-gate  * rexecd
52*0Sstevel@tonic-gate  * rlogind
53*0Sstevel@tonic-gate  * rshd
54*0Sstevel@tonic-gate  * telnetd
55*0Sstevel@tonic-gate  * rexd
56*0Sstevel@tonic-gate  */
57*0Sstevel@tonic-gate extern	int	audit_settid(int);
58*0Sstevel@tonic-gate 
59*0Sstevel@tonic-gate /*
60*0Sstevel@tonic-gate  * audit_allocate.c
61*0Sstevel@tonic-gate  * interface user
62*0Sstevel@tonic-gate  * allocate
63*0Sstevel@tonic-gate  */
64*0Sstevel@tonic-gate extern	void	audit_allocate_argv(int, int, char *[]);
65*0Sstevel@tonic-gate extern	int	audit_allocate_record(int);
66*0Sstevel@tonic-gate extern	void	audit_allocate_list(char *);
67*0Sstevel@tonic-gate extern	void	audit_allocate_device(char *);
68*0Sstevel@tonic-gate 
69*0Sstevel@tonic-gate /*
70*0Sstevel@tonic-gate  * audit_ftpd.c
71*0Sstevel@tonic-gate  * interface user
72*0Sstevel@tonic-gate  * ftpd
73*0Sstevel@tonic-gate  */
74*0Sstevel@tonic-gate extern	void	audit_ftpd_bad_pw(char *uname);
75*0Sstevel@tonic-gate extern	void	audit_ftpd_excluded(char *uname);
76*0Sstevel@tonic-gate extern	void	audit_ftpd_failure(char *uname);
77*0Sstevel@tonic-gate extern	void	audit_ftpd_no_anon(void);
78*0Sstevel@tonic-gate extern	void	audit_ftpd_success(char *uname);
79*0Sstevel@tonic-gate extern	void	audit_ftpd_unknown(char *uname);
80*0Sstevel@tonic-gate extern	void	audit_ftpd_logout(void);
81*0Sstevel@tonic-gate 
82*0Sstevel@tonic-gate /*
83*0Sstevel@tonic-gate  * audit_rexecd.c
84*0Sstevel@tonic-gate  * interface user
85*0Sstevel@tonic-gate  * rexecd
86*0Sstevel@tonic-gate  */
87*0Sstevel@tonic-gate extern	void	audit_rexecd_setup(void);
88*0Sstevel@tonic-gate extern	void	audit_rexecd_success(char *, char *, char *);
89*0Sstevel@tonic-gate extern	void	audit_rexecd_fail(char *, char *, char *, char *);
90*0Sstevel@tonic-gate 
91*0Sstevel@tonic-gate /*
92*0Sstevel@tonic-gate  * audit_rshd.c
93*0Sstevel@tonic-gate  * interface user
94*0Sstevel@tonic-gate  * rshd
95*0Sstevel@tonic-gate  */
96*0Sstevel@tonic-gate extern	int	audit_rshd_setup(void);
97*0Sstevel@tonic-gate extern	int	audit_rshd_success(char *, char *, char *, char *);
98*0Sstevel@tonic-gate extern	int	audit_rshd_fail(char *, char *, char *, char *, char *);
99*0Sstevel@tonic-gate 
100*0Sstevel@tonic-gate /*
101*0Sstevel@tonic-gate  * audit_inetd.c
102*0Sstevel@tonic-gate  * interface user
103*0Sstevel@tonic-gate  * inetd
104*0Sstevel@tonic-gate  */
105*0Sstevel@tonic-gate extern	int	audit_inetd_service(char *, struct passwd *);
106*0Sstevel@tonic-gate extern	int	audit_inetd_config(void);
107*0Sstevel@tonic-gate extern	int	audit_inetd_termid(int);
108*0Sstevel@tonic-gate 
109*0Sstevel@tonic-gate /*
110*0Sstevel@tonic-gate  * audit_at.c
111*0Sstevel@tonic-gate  * interface users
112*0Sstevel@tonic-gate  * atrm
113*0Sstevel@tonic-gate  * at
114*0Sstevel@tonic-gate  */
115*0Sstevel@tonic-gate extern	int	audit_at_delete(char *, char *, int);
116*0Sstevel@tonic-gate extern	int	audit_at_create(char *, int);
117*0Sstevel@tonic-gate 
118*0Sstevel@tonic-gate /*
119*0Sstevel@tonic-gate  * audit_crontab.c
120*0Sstevel@tonic-gate  * interface user
121*0Sstevel@tonic-gate  * crontab
122*0Sstevel@tonic-gate  */
123*0Sstevel@tonic-gate extern	int	audit_crontab_modify(char *, char *, int);
124*0Sstevel@tonic-gate extern	int	audit_crontab_delete(char *, int);
125*0Sstevel@tonic-gate extern	int	audit_crontab_not_allowed(uid_t, char *);
126*0Sstevel@tonic-gate extern	int	audit_crontab_process_not_audited(void);
127*0Sstevel@tonic-gate 
128*0Sstevel@tonic-gate /*
129*0Sstevel@tonic-gate  * audit_cron.c
130*0Sstevel@tonic-gate  * interface users
131*0Sstevel@tonic-gate  * cron
132*0Sstevel@tonic-gate  * at
133*0Sstevel@tonic-gate  */
134*0Sstevel@tonic-gate extern	int	audit_cron_session(char *, char *, uid_t, gid_t, char *);
135*0Sstevel@tonic-gate extern	void	audit_cron_new_job(char *, int, void *);
136*0Sstevel@tonic-gate extern	void	audit_cron_bad_user(char *);
137*0Sstevel@tonic-gate extern	void	audit_cron_user_acct_expired(char *);
138*0Sstevel@tonic-gate extern	int	audit_cron_create_anc_file(char *, char *, char *, uid_t);
139*0Sstevel@tonic-gate extern	int	audit_cron_delete_anc_file(char *, char *);
140*0Sstevel@tonic-gate extern	int	audit_cron_is_anc_name(char *);
141*0Sstevel@tonic-gate extern	int	audit_cron_mode(void);
142*0Sstevel@tonic-gate extern	char	*audit_cron_make_anc_name(char *);
143*0Sstevel@tonic-gate extern	int	audit_cron_setinfo(char *, auditinfo_addr_t *);
144*0Sstevel@tonic-gate 
145*0Sstevel@tonic-gate /*
146*0Sstevel@tonic-gate  * audit_mountd.c
147*0Sstevel@tonic-gate  * interface user
148*0Sstevel@tonic-gate  * mountd
149*0Sstevel@tonic-gate  */
150*0Sstevel@tonic-gate extern	void	audit_mountd_setup(void);
151*0Sstevel@tonic-gate extern	void	audit_mountd_mount(char *, char *, int);
152*0Sstevel@tonic-gate extern	void	audit_mountd_umount(char *, char *);
153*0Sstevel@tonic-gate 
154*0Sstevel@tonic-gate /*
155*0Sstevel@tonic-gate  * audit_halt.c
156*0Sstevel@tonic-gate  * interface user
157*0Sstevel@tonic-gate  * halt
158*0Sstevel@tonic-gate  */
159*0Sstevel@tonic-gate extern	int	audit_halt_setup(int, char **);
160*0Sstevel@tonic-gate extern	int	audit_halt_success(void);
161*0Sstevel@tonic-gate extern	int	audit_halt_fail(void);
162*0Sstevel@tonic-gate 
163*0Sstevel@tonic-gate /*
164*0Sstevel@tonic-gate  * audit_shutdown.c
165*0Sstevel@tonic-gate  * interface user
166*0Sstevel@tonic-gate  * shutdown
167*0Sstevel@tonic-gate  */
168*0Sstevel@tonic-gate extern	int	audit_shutdown_setup(int, char **);
169*0Sstevel@tonic-gate extern	int	audit_shutdown_success(void);
170*0Sstevel@tonic-gate extern	int	audit_shutdown_fail(void);
171*0Sstevel@tonic-gate 
172*0Sstevel@tonic-gate /*
173*0Sstevel@tonic-gate  * audit_reboot.c
174*0Sstevel@tonic-gate  * interface user
175*0Sstevel@tonic-gate  * halt
176*0Sstevel@tonic-gate  */
177*0Sstevel@tonic-gate extern	int	audit_reboot_setup(void);
178*0Sstevel@tonic-gate extern	int	audit_reboot_success(void);
179*0Sstevel@tonic-gate extern	int	audit_reboot_fail(void);
180*0Sstevel@tonic-gate 
181*0Sstevel@tonic-gate /*
182*0Sstevel@tonic-gate  * audit_login.c
183*0Sstevel@tonic-gate  * login
184*0Sstevel@tonic-gate  */
185*0Sstevel@tonic-gate extern	int	audit_login_save_flags(int, int);
186*0Sstevel@tonic-gate extern	int	audit_login_save_host(char *);
187*0Sstevel@tonic-gate extern	int	audit_login_save_ttyn(char *);
188*0Sstevel@tonic-gate extern	int	audit_login_save_port(void);
189*0Sstevel@tonic-gate extern	int	audit_login_save_machine(void);
190*0Sstevel@tonic-gate extern	int	audit_login_success(void);
191*0Sstevel@tonic-gate extern	int	audit_login_save_pw(struct passwd *);
192*0Sstevel@tonic-gate extern	int	audit_login_bad_pw(void);
193*0Sstevel@tonic-gate extern	int	audit_login_maxtrys(void);
194*0Sstevel@tonic-gate extern	int	audit_login_not_console(void);
195*0Sstevel@tonic-gate extern	int	audit_login_bad_dialup(void);
196*0Sstevel@tonic-gate extern	int	audit_login_maxtrys(void);
197*0Sstevel@tonic-gate 
198*0Sstevel@tonic-gate /*
199*0Sstevel@tonic-gate  * audit_newgrp.c
200*0Sstevel@tonic-gate  * newgrp
201*0Sstevel@tonic-gate  */
202*0Sstevel@tonic-gate extern	void	audit_newgrp_login(char *, int);
203*0Sstevel@tonic-gate 
204*0Sstevel@tonic-gate /*
205*0Sstevel@tonic-gate  * audit_rexd.c
206*0Sstevel@tonic-gate  * interface users
207*0Sstevel@tonic-gate  * rpc.rexd
208*0Sstevel@tonic-gate  */
209*0Sstevel@tonic-gate extern	void 	audit_rexd_fail(char *, char *, char *, uid_t, gid_t,
210*0Sstevel@tonic-gate     char *, char **);
211*0Sstevel@tonic-gate extern	void	audit_rexd_success(char *, char *, uid_t, gid_t,
212*0Sstevel@tonic-gate     char *, char **);
213*0Sstevel@tonic-gate extern	void	audit_rexd_setup(void);
214*0Sstevel@tonic-gate 
215*0Sstevel@tonic-gate /*
216*0Sstevel@tonic-gate  * audit_uadmin.c
217*0Sstevel@tonic-gate  * interface user
218*0Sstevel@tonic-gate  * uadmin
219*0Sstevel@tonic-gate  */
220*0Sstevel@tonic-gate extern	int	audit_uadmin_setup(int, char **);
221*0Sstevel@tonic-gate extern	int	audit_uadmin_success(void);
222*0Sstevel@tonic-gate 
223*0Sstevel@tonic-gate /*
224*0Sstevel@tonic-gate  * audit_su.c
225*0Sstevel@tonic-gate  * interface user
226*0Sstevel@tonic-gate  * su
227*0Sstevel@tonic-gate  */
228*0Sstevel@tonic-gate extern	void	audit_su_bad_authentication(void);
229*0Sstevel@tonic-gate extern	void	audit_su_bad_uid(uid_t);
230*0Sstevel@tonic-gate extern	void	audit_su_bad_username(void);
231*0Sstevel@tonic-gate extern	void	audit_su_init_info(char *, char *);
232*0Sstevel@tonic-gate extern	void	audit_su_reset_ai(void);
233*0Sstevel@tonic-gate extern	void	audit_su_success(void);
234*0Sstevel@tonic-gate extern	void	audit_su_unknown_failure(void);
235*0Sstevel@tonic-gate 
236*0Sstevel@tonic-gate #ifdef	__cplusplus
237*0Sstevel@tonic-gate }
238*0Sstevel@tonic-gate #endif
239*0Sstevel@tonic-gate 
240*0Sstevel@tonic-gate #endif	/* _AUDIT_PRIVATE_H */
241