audit_domain.h revision 191273
1187063Srwatson/*- 2187063Srwatson * Copyright (c) 2008 Apple Inc. 3187063Srwatson * All rights reserved. 4187063Srwatson * 5187063Srwatson * Redistribution and use in source and binary forms, with or without 6187063Srwatson * modification, are permitted provided that the following conditions 7187063Srwatson * are met: 8187063Srwatson * 1. Redistributions of source code must retain the above copyright 9187063Srwatson * notice, this list of conditions and the following disclaimer. 10187063Srwatson * 2. Redistributions in binary form must reproduce the above copyright 11187063Srwatson * notice, this list of conditions and the following disclaimer in the 12187063Srwatson * documentation and/or other materials provided with the distribution. 13187063Srwatson * 3. Neither the name of Apple Inc. ("Apple") nor the names of 14187063Srwatson * its contributors may be used to endorse or promote products derived 15187063Srwatson * from this software without specific prior written permission. 16187063Srwatson * 17187063Srwatson * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND 18187063Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19187063Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20187063Srwatson * ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR 21187063Srwatson * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22187063Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23187063Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24187063Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25187063Srwatson * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26187063Srwatson * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27187063Srwatson * POSSIBILITY OF SUCH DAMAGE. 28187063Srwatson * 29191273Srwatson * $P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit_domain.h#2 $ 30187063Srwatson */ 31187063Srwatson 32187063Srwatson#ifndef _BSM_AUDIT_DOMAIN_H_ 33187063Srwatson#define _BSM_AUDIT_DOMAIN_H_ 34187063Srwatson 35187063Srwatson/* 36187063Srwatson * BSM protocol domain constants - protocol domains defined in Solaris. 37187063Srwatson */ 38187063Srwatson#define BSM_PF_UNSPEC 0 39187063Srwatson#define BSM_PF_LOCAL 1 40187063Srwatson#define BSM_PF_INET 2 41187063Srwatson#define BSM_PF_IMPLINK 3 42187063Srwatson#define BSM_PF_PUP 4 43187063Srwatson#define BSM_PF_CHAOS 5 44187063Srwatson#define BSM_PF_NS 6 45187063Srwatson#define BSM_PF_NBS 7 /* Solaris-specific. */ 46187063Srwatson#define BSM_PF_ECMA 8 47187063Srwatson#define BSM_PF_DATAKIT 9 48187063Srwatson#define BSM_PF_CCITT 10 49187063Srwatson#define BSM_PF_SNA 11 50187063Srwatson#define BSM_PF_DECnet 12 51187063Srwatson#define BSM_PF_DLI 13 52187063Srwatson#define BSM_PF_LAT 14 53187063Srwatson#define BSM_PF_HYLINK 15 54187063Srwatson#define BSM_PF_APPLETALK 16 55187063Srwatson#define BSM_PF_NIT 17 /* Solaris-specific. */ 56187063Srwatson#define BSM_PF_802 18 /* Solaris-specific. */ 57187063Srwatson#define BSM_PF_OSI 19 58187063Srwatson#define BSM_PF_X25 20 /* Solaris/Linux-specific. */ 59187063Srwatson#define BSM_PF_OSINET 21 /* Solaris-specific. */ 60187063Srwatson#define BSM_PF_GOSIP 22 /* Solaris-specific. */ 61187063Srwatson#define BSM_PF_IPX 23 62187063Srwatson#define BSM_PF_ROUTE 24 63187063Srwatson#define BSM_PF_LINK 25 64187063Srwatson#define BSM_PF_INET6 26 65187063Srwatson#define BSM_PF_KEY 27 66187063Srwatson#define BSM_PF_NCA 28 /* Solaris-specific. */ 67187063Srwatson#define BSM_PF_POLICY 29 /* Solaris-specific. */ 68187063Srwatson#define BSM_PF_INET_OFFLOAD 30 /* Solaris-specific. */ 69187063Srwatson 70187063Srwatson/* 71187063Srwatson * BSM protocol domain constants - protocol domains not defined in Solaris. 72187063Srwatson */ 73187063Srwatson#define BSM_PF_NETBIOS 500 /* FreeBSD/Darwin-specific. */ 74187063Srwatson#define BSM_PF_ISO 501 /* FreeBSD/Darwin-specific. */ 75187063Srwatson#define BSM_PF_XTP 502 /* FreeBSD/Darwin-specific. */ 76187063Srwatson#define BSM_PF_COIP 503 /* FreeBSD/Darwin-specific. */ 77187063Srwatson#define BSM_PF_CNT 504 /* FreeBSD/Darwin-specific. */ 78187063Srwatson#define BSM_PF_RTIP 505 /* FreeBSD/Darwin-specific. */ 79187063Srwatson#define BSM_PF_SIP 506 /* FreeBSD/Darwin-specific. */ 80187063Srwatson#define BSM_PF_PIP 507 /* FreeBSD/Darwin-specific. */ 81187063Srwatson#define BSM_PF_ISDN 508 /* FreeBSD/Darwin-specific. */ 82187063Srwatson#define BSM_PF_E164 509 /* FreeBSD/Darwin-specific. */ 83187063Srwatson#define BSM_PF_NATM 510 /* FreeBSD/Darwin-specific. */ 84187063Srwatson#define BSM_PF_ATM 511 /* FreeBSD/Darwin-specific. */ 85187063Srwatson#define BSM_PF_NETGRAPH 512 /* FreeBSD/Darwin-specific. */ 86187063Srwatson#define BSM_PF_SLOW 513 /* FreeBSD-specific. */ 87187063Srwatson#define BSM_PF_SCLUSTER 514 /* FreeBSD-specific. */ 88187063Srwatson#define BSM_PF_ARP 515 /* FreeBSD-specific. */ 89187063Srwatson#define BSM_PF_BLUETOOTH 516 /* FreeBSD-specific. */ 90191273Srwatson /* 517: unallocated. */ 91187063Srwatson#define BSM_PF_AX25 518 /* Linux-specific. */ 92187063Srwatson#define BSM_PF_ROSE 519 /* Linux-specific. */ 93187063Srwatson#define BSM_PF_NETBEUI 520 /* Linux-specific. */ 94187063Srwatson#define BSM_PF_SECURITY 521 /* Linux-specific. */ 95187063Srwatson#define BSM_PF_PACKET 522 /* Linux-specific. */ 96187063Srwatson#define BSM_PF_ASH 523 /* Linux-specific. */ 97187063Srwatson#define BSM_PF_ECONET 524 /* Linux-specific. */ 98187063Srwatson#define BSM_PF_ATMSVC 525 /* Linux-specific. */ 99187063Srwatson#define BSM_PF_IRDA 526 /* Linux-specific. */ 100187063Srwatson#define BSM_PF_PPPOX 527 /* Linux-specific. */ 101187063Srwatson#define BSM_PF_WANPIPE 528 /* Linux-specific. */ 102187063Srwatson#define BSM_PF_LLC 529 /* Linux-specific. */ 103187063Srwatson#define BSM_PF_CAN 530 /* Linux-specific. */ 104187063Srwatson#define BSM_PF_TIPC 531 /* Linux-specific. */ 105187063Srwatson#define BSM_PF_IUCV 532 /* Linux-specific. */ 106187063Srwatson#define BSM_PF_RXRPC 533 /* Linux-specific. */ 107187063Srwatson#define BSM_PF_PHONET 534 /* Linux-specific. */ 108187063Srwatson 109187063Srwatson/* 110187063Srwatson * Used when there is no mapping from a local to BSM protocol domain. 111187063Srwatson */ 112187063Srwatson#define BSM_PF_UNKNOWN 700 /* OpenBSM-specific. */ 113187063Srwatson 114187063Srwatson#endif /* !_BSM_AUDIT_DOMAIN_H_ */ 115