/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1988 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Audit trail structures;
*/
#ifndef _sys_audit_h
#define _sys_audit_h
/*
* Maximum size for audit data passed from the audit system call
* This value is arbitrary, so offers of better numbers are invited.
*/
/*
* Audit conditions, statements reguarding what's to be done with
* audit records.
*/
/*
* Minimum and maximum record type values. Change AUR_MAXRECTYPE when
* adding new record types.
*/
/*
* Audit record type codes
*/
/*
* The classes of audit events
*/
/*
* Success and failure are defined here because not everyone agrees on
* which values rate success and which failure.
*/
#define AU_SUCCESS 0
/*
* The user id -2(0xfffe) is never audited - in fact, a setauid(AU_NOAUDITID)
* will turn off auditing.
*/
/*
* The sturcture of the audit state
*/
struct audit_state {
};
/*
* The audit file header structure.
* In the file it will be followed by a path name, the length of which is
* kept in the ah_namelen field.
*/
struct audit_header {
};
/*
* The audit file trailer record structure.
* In the file it will be followed by a path name, the length of which is
* kept in the at_namelen field.
*/
struct audit_trailer {
};
/*
* The audit file record structure.
* au_record_size is the size of the entire record.
* au_param_count is the number of data items which follow the record.
* There is a short ( 16 bit ) length for each of the following
* parameters, then the parameters themselves. There is no way to know
* what the parameters are from the data, unless the au_record_type
* is understood.
* The first parameter is the group list, hence au_param_count will
* always be at least one.
*/
struct audit_record {
};
/*
* This structure controls a buffer for generating full pathnames
* for filenames.
*/
struct au_path_s {
};
#endif /*!_sys_audit_h*/