10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 51453Sgww * Common Development and Distribution License (the "License"). 61453Sgww * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* 22*5319Stz204579 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate * Use is subject to license terms. 240Sstevel@tonic-gate * 250Sstevel@tonic-gate * Do not add to this file unless it is to cover an existing private 260Sstevel@tonic-gate * interface and do not write new code that depends on this header 270Sstevel@tonic-gate * file or the interfaces contained in it. 280Sstevel@tonic-gate * 290Sstevel@tonic-gate * This is a private interface, subject to change. It exists solely 300Sstevel@tonic-gate * as a way of making certain existing clients of libbsm lint clean. 310Sstevel@tonic-gate * As the related interfaces are replaced with the adt.* interfaces, 320Sstevel@tonic-gate * this header should shrink to zero. 330Sstevel@tonic-gate */ 340Sstevel@tonic-gate 350Sstevel@tonic-gate #ifndef _AUDIT_PRIVATE_H 360Sstevel@tonic-gate #define _AUDIT_PRIVATE_H 370Sstevel@tonic-gate 380Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 390Sstevel@tonic-gate 400Sstevel@tonic-gate #ifdef __cplusplus 410Sstevel@tonic-gate extern "C" { 420Sstevel@tonic-gate #endif 430Sstevel@tonic-gate 440Sstevel@tonic-gate #include <bsm/libbsm.h> 450Sstevel@tonic-gate #include <pwd.h> 460Sstevel@tonic-gate 470Sstevel@tonic-gate /* 480Sstevel@tonic-gate * audit_settid.c 490Sstevel@tonic-gate * interface users 500Sstevel@tonic-gate * rexecd 510Sstevel@tonic-gate * rlogind 520Sstevel@tonic-gate * rshd 530Sstevel@tonic-gate * telnetd 540Sstevel@tonic-gate * rexd 550Sstevel@tonic-gate */ 560Sstevel@tonic-gate extern int audit_settid(int); 570Sstevel@tonic-gate 580Sstevel@tonic-gate /* 590Sstevel@tonic-gate * audit_allocate.c 600Sstevel@tonic-gate * interface user 610Sstevel@tonic-gate * allocate 620Sstevel@tonic-gate */ 630Sstevel@tonic-gate extern void audit_allocate_argv(int, int, char *[]); 640Sstevel@tonic-gate extern int audit_allocate_record(int); 650Sstevel@tonic-gate extern void audit_allocate_list(char *); 660Sstevel@tonic-gate extern void audit_allocate_device(char *); 670Sstevel@tonic-gate 680Sstevel@tonic-gate /* 690Sstevel@tonic-gate * audit_ftpd.c 700Sstevel@tonic-gate * interface user 710Sstevel@tonic-gate * ftpd 720Sstevel@tonic-gate */ 730Sstevel@tonic-gate extern void audit_ftpd_bad_pw(char *uname); 740Sstevel@tonic-gate extern void audit_ftpd_excluded(char *uname); 750Sstevel@tonic-gate extern void audit_ftpd_failure(char *uname); 760Sstevel@tonic-gate extern void audit_ftpd_no_anon(void); 770Sstevel@tonic-gate extern void audit_ftpd_success(char *uname); 780Sstevel@tonic-gate extern void audit_ftpd_unknown(char *uname); 790Sstevel@tonic-gate extern void audit_ftpd_logout(void); 800Sstevel@tonic-gate 810Sstevel@tonic-gate /* 820Sstevel@tonic-gate * audit_rexecd.c 830Sstevel@tonic-gate * interface user 840Sstevel@tonic-gate * rexecd 850Sstevel@tonic-gate */ 860Sstevel@tonic-gate extern void audit_rexecd_setup(void); 870Sstevel@tonic-gate extern void audit_rexecd_success(char *, char *, char *); 880Sstevel@tonic-gate extern void audit_rexecd_fail(char *, char *, char *, char *); 890Sstevel@tonic-gate 900Sstevel@tonic-gate /* 910Sstevel@tonic-gate * audit_rshd.c 920Sstevel@tonic-gate * interface user 930Sstevel@tonic-gate * rshd 940Sstevel@tonic-gate */ 950Sstevel@tonic-gate extern int audit_rshd_setup(void); 960Sstevel@tonic-gate extern int audit_rshd_success(char *, char *, char *, char *); 970Sstevel@tonic-gate extern int audit_rshd_fail(char *, char *, char *, char *, char *); 980Sstevel@tonic-gate 990Sstevel@tonic-gate /* 1000Sstevel@tonic-gate * audit_at.c 1010Sstevel@tonic-gate * interface users 1020Sstevel@tonic-gate * atrm 1030Sstevel@tonic-gate * at 1040Sstevel@tonic-gate */ 1050Sstevel@tonic-gate extern int audit_at_delete(char *, char *, int); 1060Sstevel@tonic-gate extern int audit_at_create(char *, int); 1070Sstevel@tonic-gate 1080Sstevel@tonic-gate /* 1090Sstevel@tonic-gate * audit_crontab.c 1100Sstevel@tonic-gate * interface user 1110Sstevel@tonic-gate * crontab 1120Sstevel@tonic-gate */ 1130Sstevel@tonic-gate extern int audit_crontab_modify(char *, char *, int); 1140Sstevel@tonic-gate extern int audit_crontab_delete(char *, int); 1150Sstevel@tonic-gate extern int audit_crontab_not_allowed(uid_t, char *); 1160Sstevel@tonic-gate extern int audit_crontab_process_not_audited(void); 1170Sstevel@tonic-gate 1180Sstevel@tonic-gate /* 1190Sstevel@tonic-gate * audit_cron.c 1200Sstevel@tonic-gate * interface users 1210Sstevel@tonic-gate * cron 1220Sstevel@tonic-gate * at 1230Sstevel@tonic-gate */ 1240Sstevel@tonic-gate extern int audit_cron_session(char *, char *, uid_t, gid_t, char *); 1250Sstevel@tonic-gate extern void audit_cron_new_job(char *, int, void *); 1260Sstevel@tonic-gate extern void audit_cron_bad_user(char *); 1270Sstevel@tonic-gate extern void audit_cron_user_acct_expired(char *); 1280Sstevel@tonic-gate extern int audit_cron_create_anc_file(char *, char *, char *, uid_t); 1290Sstevel@tonic-gate extern int audit_cron_delete_anc_file(char *, char *); 1300Sstevel@tonic-gate extern int audit_cron_is_anc_name(char *); 1310Sstevel@tonic-gate extern int audit_cron_mode(void); 1320Sstevel@tonic-gate extern char *audit_cron_make_anc_name(char *); 1330Sstevel@tonic-gate extern int audit_cron_setinfo(char *, auditinfo_addr_t *); 1340Sstevel@tonic-gate 1350Sstevel@tonic-gate /* 1360Sstevel@tonic-gate * audit_mountd.c 1370Sstevel@tonic-gate * interface user 1380Sstevel@tonic-gate * mountd 1390Sstevel@tonic-gate */ 1400Sstevel@tonic-gate extern void audit_mountd_setup(void); 1410Sstevel@tonic-gate extern void audit_mountd_mount(char *, char *, int); 1420Sstevel@tonic-gate extern void audit_mountd_umount(char *, char *); 1430Sstevel@tonic-gate 1440Sstevel@tonic-gate /* 1450Sstevel@tonic-gate * audit_halt.c 1460Sstevel@tonic-gate * interface user 1470Sstevel@tonic-gate * halt 1480Sstevel@tonic-gate */ 1490Sstevel@tonic-gate extern int audit_halt_setup(int, char **); 1500Sstevel@tonic-gate extern int audit_halt_success(void); 1510Sstevel@tonic-gate extern int audit_halt_fail(void); 1520Sstevel@tonic-gate 1530Sstevel@tonic-gate /* 1540Sstevel@tonic-gate * audit_shutdown.c 1550Sstevel@tonic-gate * interface user 1560Sstevel@tonic-gate * shutdown 1570Sstevel@tonic-gate */ 1580Sstevel@tonic-gate extern int audit_shutdown_setup(int, char **); 1590Sstevel@tonic-gate extern int audit_shutdown_success(void); 1600Sstevel@tonic-gate extern int audit_shutdown_fail(void); 1610Sstevel@tonic-gate 1620Sstevel@tonic-gate /* 1630Sstevel@tonic-gate * audit_reboot.c 1640Sstevel@tonic-gate * interface user 1650Sstevel@tonic-gate * halt 1660Sstevel@tonic-gate */ 1670Sstevel@tonic-gate extern int audit_reboot_setup(void); 1680Sstevel@tonic-gate extern int audit_reboot_success(void); 1690Sstevel@tonic-gate extern int audit_reboot_fail(void); 1700Sstevel@tonic-gate 1710Sstevel@tonic-gate /* 1720Sstevel@tonic-gate * audit_rexd.c 1730Sstevel@tonic-gate * interface users 1740Sstevel@tonic-gate * rpc.rexd 1750Sstevel@tonic-gate */ 1760Sstevel@tonic-gate extern void audit_rexd_fail(char *, char *, char *, uid_t, gid_t, 1770Sstevel@tonic-gate char *, char **); 1780Sstevel@tonic-gate extern void audit_rexd_success(char *, char *, uid_t, gid_t, 1790Sstevel@tonic-gate char *, char **); 1800Sstevel@tonic-gate extern void audit_rexd_setup(void); 1810Sstevel@tonic-gate 1820Sstevel@tonic-gate #ifdef __cplusplus 1830Sstevel@tonic-gate } 1840Sstevel@tonic-gate #endif 1850Sstevel@tonic-gate 1860Sstevel@tonic-gate #endif /* _AUDIT_PRIVATE_H */ 187