2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A/*
2N/A * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A *
2N/A * Do not add to this file unless it is to cover an existing private
2N/A * interface and do not write new code that depends on this header
2N/A * file or the interfaces contained in it.
2N/A *
2N/A * This is a private interface, subject to change. It exists solely
2N/A * as a way of making certain existing clients of libbsm lint clean.
2N/A * As the related interfaces are replaced with the adt.* interfaces,
2N/A * this header should shrink to zero.
2N/A */
2N/A
2N/A#ifndef _AUDIT_PRIVATE_H
2N/A#define _AUDIT_PRIVATE_H
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A#include <bsm/libbsm.h>
2N/A#include <pwd.h>
2N/A
2N/A/*
2N/A * audit_settid.c
2N/A * interface users
2N/A * rexecd
2N/A * rlogind
2N/A * rshd
2N/A * telnetd
2N/A * rexd
2N/A */
2N/Aextern int audit_settid(int);
2N/A
2N/A/*
2N/A * audit_rexecd.c
2N/A * interface user
2N/A * rexecd
2N/A */
2N/Aextern void audit_rexecd_setup(void);
2N/Aextern void audit_rexecd_success(char *, char *, char *);
2N/Aextern void audit_rexecd_fail(char *, char *, char *, char *);
2N/A
2N/A/*
2N/A * audit_rshd.c
2N/A * interface user
2N/A * rshd
2N/A */
2N/Aextern int audit_rshd_setup(void);
2N/Aextern int audit_rshd_success(char *, char *, char *, char *);
2N/Aextern int audit_rshd_fail(char *, char *, char *, char *, char *);
2N/A
2N/A/*
2N/A * audit_at.c
2N/A * interface users
2N/A * atrm
2N/A * at
2N/A */
2N/Aextern int audit_at_delete(char *, char *, int);
2N/Aextern int audit_at_create(char *, int);
2N/A
2N/A/*
2N/A * audit_crontab.c
2N/A * interface user
2N/A * crontab
2N/A */
2N/Aextern int audit_crontab_modify(char *, char *, int);
2N/Aextern int audit_crontab_delete(char *, int);
2N/Aextern int audit_crontab_not_allowed(uid_t, char *);
2N/Aextern int audit_crontab_process_not_audited(void);
2N/A
2N/A/*
2N/A * audit_cron.c
2N/A * interface users
2N/A * cron
2N/A * at
2N/A */
2N/Aextern int audit_cron_session(char *, char *, uid_t, gid_t, char *);
2N/Aextern void audit_cron_new_job(char *, int, void *);
2N/Aextern void audit_cron_bad_user(char *);
2N/Aextern void audit_cron_user_acct_expired(char *);
2N/Aextern int audit_cron_create_anc_file(char *, char *, char *, uid_t);
2N/Aextern int audit_cron_delete_anc_file(char *, char *);
2N/Aextern int audit_cron_is_anc_name(char *);
2N/Aextern int audit_cron_mode(void);
2N/Aextern char *audit_cron_make_anc_name(char *);
2N/Aextern int audit_cron_setinfo(char *, auditinfo_addr_t *);
2N/A
2N/A/*
2N/A * audit_halt.c
2N/A * interface user
2N/A * halt
2N/A */
2N/Aextern int audit_halt_setup(int, char **);
2N/Aextern int audit_halt_success(void);
2N/Aextern int audit_halt_fail(void);
2N/A
2N/A/*
2N/A * audit_shutdown.c
2N/A * interface user
2N/A * shutdown
2N/A */
2N/Aextern int audit_shutdown_setup(int, char **);
2N/Aextern int audit_shutdown_success(void);
2N/Aextern int audit_shutdown_fail(void);
2N/A
2N/A/*
2N/A * audit_reboot.c
2N/A * interface user
2N/A * halt
2N/A */
2N/Aextern int audit_reboot_setup(void);
2N/Aextern int audit_reboot_success(void);
2N/Aextern int audit_reboot_fail(void);
2N/A
2N/A/*
2N/A * audit_rexd.c
2N/A * interface users
2N/A * rpc.rexd
2N/A */
2N/Aextern void audit_rexd_fail(char *, char *, char *, uid_t, gid_t,
2N/A char *, char **);
2N/Aextern void audit_rexd_success(char *, char *, uid_t, gid_t,
2N/A char *, char **);
2N/Aextern void audit_rexd_setup(void);
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _AUDIT_PRIVATE_H */