1*a9643ea8Slogwang /*- 2*a9643ea8Slogwang * Copyright (c) 1999-2002, 2007 Robert N. M. Watson 3*a9643ea8Slogwang * Copyright (c) 2001-2003 Networks Associates Technology, Inc. 4*a9643ea8Slogwang * All rights reserved. 5*a9643ea8Slogwang * 6*a9643ea8Slogwang * This software was developed by Robert Watson for the TrustedBSD Project. 7*a9643ea8Slogwang * 8*a9643ea8Slogwang * This software was developed for the FreeBSD Project in part by Network 9*a9643ea8Slogwang * Associates Laboratories, the Security Research Division of Network 10*a9643ea8Slogwang * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), 11*a9643ea8Slogwang * as part of the DARPA CHATS research program. 12*a9643ea8Slogwang * 13*a9643ea8Slogwang * Redistribution and use in source and binary forms, with or without 14*a9643ea8Slogwang * modification, are permitted provided that the following conditions 15*a9643ea8Slogwang * are met: 16*a9643ea8Slogwang * 1. Redistributions of source code must retain the above copyright 17*a9643ea8Slogwang * notice, this list of conditions and the following disclaimer. 18*a9643ea8Slogwang * 2. Redistributions in binary form must reproduce the above copyright 19*a9643ea8Slogwang * notice, this list of conditions and the following disclaimer in the 20*a9643ea8Slogwang * documentation and/or other materials provided with the distribution. 21*a9643ea8Slogwang * 22*a9643ea8Slogwang * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 23*a9643ea8Slogwang * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24*a9643ea8Slogwang * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25*a9643ea8Slogwang * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 26*a9643ea8Slogwang * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27*a9643ea8Slogwang * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28*a9643ea8Slogwang * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29*a9643ea8Slogwang * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30*a9643ea8Slogwang * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31*a9643ea8Slogwang * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32*a9643ea8Slogwang * SUCH DAMAGE. 33*a9643ea8Slogwang * 34*a9643ea8Slogwang * $FreeBSD$ 35*a9643ea8Slogwang */ 36*a9643ea8Slogwang 37*a9643ea8Slogwang /* 38*a9643ea8Slogwang * Developed by the TrustedBSD Project. 39*a9643ea8Slogwang * 40*a9643ea8Slogwang * Sample policy implementing no entry points; for performance measurement 41*a9643ea8Slogwang * purposes only. If you're looking for a stub policy to base new policies 42*a9643ea8Slogwang * on, try mac_stub. 43*a9643ea8Slogwang */ 44*a9643ea8Slogwang 45*a9643ea8Slogwang #include <sys/param.h> 46*a9643ea8Slogwang #include <sys/kernel.h> 47*a9643ea8Slogwang #include <sys/module.h> 48*a9643ea8Slogwang 49*a9643ea8Slogwang #include <security/mac/mac_policy.h> 50*a9643ea8Slogwang 51*a9643ea8Slogwang static struct mac_policy_ops none_ops = 52*a9643ea8Slogwang { 53*a9643ea8Slogwang }; 54*a9643ea8Slogwang 55*a9643ea8Slogwang MAC_POLICY_SET(&none_ops, mac_none, "TrustedBSD MAC/None", 56*a9643ea8Slogwang MPC_LOADTIME_FLAG_UNLOADOK, NULL); 57