]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/bsm/audit_record.h
xnu-1228.0.2.tar.gz
[apple/xnu.git] / bsd / bsm / audit_record.h
index e44b32e638a1210c7a2c93ac7da2caa621df0029..fb58ccc05bd998cc3acc17ee4f95b96d7df5d4cb 100644 (file)
@@ -1,29 +1,29 @@
 /*
- * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
- * 
- * This file contains Original Code and/or Modifications of Original Code 
- * as defined in and that are subject to the Apple Public Source License 
- * Version 2.0 (the 'License'). You may not use this file except in 
- * compliance with the License.  The rights granted to you under the 
- * License may not be used to create, or enable the creation or 
- * redistribution of, unlawful or unlicensed copies of an Apple operating 
- * system, or to circumvent, violate, or enable the circumvention or 
- * violation of, any terms of an Apple operating system software license 
- * agreement.
- *
- * Please obtain a copy of the License at 
- * http://www.opensource.apple.com/apsl/ and read it before using this 
- * file.
+ * Copyright (c) 1999-2007 Apple Inc.  All Rights Reserved.
  *
- * The Original Code and all software distributed under the License are 
- * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
- * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
- * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 
- * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
- * Please see the License for the specific language governing rights and 
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ * 
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ * 
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ * 
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
  * limitations under the License.
- *
- * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
+ * 
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  */
 
 #ifndef _BSM_AUDIT_RECORD_H_
@@ -246,15 +246,15 @@ token_t                   *au_to_header64(int rec_size, au_event_t e_type,
 token_t                        *au_to_me(void);
                                
 token_t                        *au_to_arg(char n, char *text, u_int32_t v);
-token_t                        *au_to_arg32(char n, char *text, u_int32_t v);
-token_t                        *au_to_arg64(char n, char *text, u_int64_t v);
+token_t                        *au_to_arg32(char n, const char *text, u_int32_t v);
+token_t                        *au_to_arg64(char n, const char *text, u_int64_t v);
 token_t                        *au_to_attr(struct vnode_attr *attr);
 token_t                        *au_to_attr32(struct vnode_attr *attr);
 token_t                        *au_to_attr64(struct vnode_attr *attr);
 token_t                        *au_to_data(char unit_print, char unit_type,
-                               char unit_count, char *p);
+                               char unit_count, unsigned char *p);
 token_t                        *au_to_exit(int retval, int err);
-token_t                        *au_to_groups(int *groups);
+token_t                        *au_to_groups(gid_t *groups);
 token_t                        *au_to_newgroups(u_int16_t n, gid_t *groups);
 token_t                        *au_to_in_addr(struct in_addr *internet_addr);
 token_t                        *au_to_in_addr_ex(struct in6_addr *internet_addr);
@@ -285,7 +285,7 @@ token_t                     *au_to_process64_ex(au_id_t auid, uid_t euid,
 token_t                        *au_to_return(char status, u_int32_t ret);
 token_t                        *au_to_return32(char status, u_int32_t ret);
 token_t                        *au_to_return64(char status, u_int64_t ret);
-token_t                        *au_to_seq(long audit_count);
+token_t                        *au_to_seq(u_int32_t audit_count);
 token_t                        *au_to_socket(struct socket *so);
 token_t                        *au_to_socket_ex_32(u_int16_t lp, u_int16_t rp, 
                                struct sockaddr *la, struct sockaddr *ta);
@@ -315,7 +315,7 @@ token_t                     *au_to_subject64_ex(au_id_t auid, uid_t euid,
                                au_asid_t sid, au_tid_addr_t *tid);
 token_t                        *au_to_exec_args(const char **);
 token_t                        *au_to_exec_env(const char **);
-token_t                        *au_to_text(char *text);
+token_t                        *au_to_text(const char *text);
 token_t                        *au_to_kevent(struct kevent *kev);
 token_t                        *au_to_trailer(int rec_size);