]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/bsm/audit_kevents.h
xnu-1228.tar.gz
[apple/xnu.git] / bsd / bsm / audit_kevents.h
index b14b01e1967c64bed8dc082d0a0703a402506101..6df33b22a1075897ed50e2597404a82b95133bfb 100644 (file)
@@ -1,31 +1,35 @@
 /*
- * @APPLE_BSD_LICENSE_HEADER_START@
+ * Copyright (c) 1999-2007 Apple Inc.  All Rights Reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
+ * 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.
  * 
- * 1.  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer. 
- * 2.  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution. 
- * 3.  Neither the name of Apple Inc. ("Apple") nor the names of its
- *     contributors may be used to endorse or promote products derived from
- *     this software without specific prior written permission. 
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
  * 
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * 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_BSD_LICENSE_HEADER_END@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+/*
+ * NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
+ * support for mandatory and extensible security protections.  This notice
+ * is included in support of clause 2.2 (b) of the Apple Public License,
+ * Version 2.0.
  */
 
 #ifndef _BSM_AUDIT_KEVENTS_H_
 #define        AUE_PIPE        185             /*42*/
 #define AUE_GETEGID     AUE_NULL        /*43*/
 #define AUE_PROFILE     305            /*44*/
-#define AUE_KTRACE      306            /*45*/
+#define AUE_KTRACE      AUE_NULL       /*45*/
 #define AUE_REBOOT      308
 #define AUE_SIGACTION   AUE_NULL        /*46*/    /*XXX*/
 #define AUE_GETGID     AUE_NULL        /*47*/
 #define AUE_SEMINIT     AUE_NULL        /*275*/   /*ENOSYS*/
 #define AUE_SEMDESTROY  AUE_NULL        /*276*/   /*ENOSYS*/
 
-#define AUE_LOADSHFILE  347            /*296*/
-#define AUE_RESETSHFILE 348            /*297*/
-#define AUE_NEWSYSTEMSHREG 349         /*298*/
-
 #define AUE_GETSID      AUE_NULL        /*310*/
 
 #define AUE_MLOCKALL    AUE_NULL        /*324*/   /*ENOSYS*/
 #define AUE_SWAPOFF    355
 #define AUE_INITPROCESS        356
 #define AUE_MAPFD      357
+#define AUE_TASKNAMEFORPID AUE_NULL
 #define AUE_TASKFORPID 358
 #define AUE_PIDFORTASK 359
 #define AUE_SYSCTL_NONADMIN    360
 
+// BSM events for security system calls
+#define AUE_MAC_GET_PROC               400
+#define AUE_MAC_SET_PROC               401
+#define AUE_MAC_GET_PID                        402
+#define AUE_MAC_SET_FILE               403
+#define AUE_MAC_GET_FILE               404
+#define AUE_MAC_SET_LINK               405
+#define AUE_MAC_GET_LINK               406
+#define AUE_MAC_SET_FD                 407
+#define AUE_MAC_GET_FD                 408
+#define AUE_MAC_EXECVE                 409
+#define AUE_MAC_SYSCALL                        410
+#define        AUE_MAC_GET_LCID                411
+#define        AUE_MAC_GET_LCTX                412
+#define        AUE_MAC_SET_LCTX                413
+#define        AUE_SETLCID                     414
+#define        AUE_GETLCID                     415
+#define        AUE_MAC_MOUNT                   416
+#define        AUE_MAC_GET_MOUNT               417
+#define        AUE_MAC_GETFSSTAT               418
+// BSM events for extended attributes
+#define AUE_EXTATTR_SET_FILE           451
+#define AUE_EXTATTR_GET_FILE           452
+#define AUE_EXTATTR_DELETE_FILE                453
+#define AUE_EXTATTR_LIST_FILE          454
+#define AUE_EXTATTR_SET_LINK           455
+#define AUE_EXTATTR_GET_LINK           456 
+#define AUE_EXTATTR_DELETE_LINK                457
+#define AUE_EXTATTR_LIST_LINK          458
+#define AUE_EXTATTR_SET_FD             459
+#define AUE_EXTATTR_GET_FD             460
+#define AUE_EXTATTR_DELETE_FD          461
+#define AUE_EXTATTR_LIST_FD            462
+
 // BSM events - Have to identify which ones are relevant to MacOSX
 #define AUE_ACLSET                      251
 #define AUE_AUDIT                       211