mac_test.c (166899) | mac_test.c (166905) |
---|---|
1/*- 2 * Copyright (c) 1999-2002, 2007 Robert N. M. Watson 3 * Copyright (c) 2001-2005 McAfee, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert Watson for the TrustedBSD Project. 7 * 8 * This software was developed for the FreeBSD Project in part by McAfee --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * | 1/*- 2 * Copyright (c) 1999-2002, 2007 Robert N. M. Watson 3 * Copyright (c) 2001-2005 McAfee, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert Watson for the TrustedBSD Project. 7 * 8 * This software was developed for the FreeBSD Project in part by McAfee --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * |
34 * $FreeBSD: head/sys/security/mac_test/mac_test.c 166899 2007-02-23 11:15:35Z rwatson $ | 34 * $FreeBSD: head/sys/security/mac_test/mac_test.c 166905 2007-02-23 14:39:04Z rwatson $ |
35 */ 36 37/* 38 * Developed by the TrustedBSD Project. 39 * Generic mandatory access module that does nothing. 40 */ 41 | 35 */ 36 37/* 38 * Developed by the TrustedBSD Project. 39 * Generic mandatory access module that does nothing. 40 */ 41 |
42#include <sys/types.h> | |
43#include <sys/param.h> 44#include <sys/acl.h> | 42#include <sys/param.h> 43#include <sys/acl.h> |
45#include <sys/conf.h> | |
46#include <sys/kdb.h> | 44#include <sys/kdb.h> |
47#include <sys/extattr.h> | |
48#include <sys/kernel.h> 49#include <sys/ksem.h> 50#include <sys/malloc.h> | 45#include <sys/kernel.h> 46#include <sys/ksem.h> 47#include <sys/malloc.h> |
48#include <sys/module.h> |
|
51#include <sys/mount.h> | 49#include <sys/mount.h> |
50#include <sys/msg.h> |
|
52#include <sys/proc.h> | 51#include <sys/proc.h> |
53#include <sys/systm.h> 54#include <sys/sysproto.h> 55#include <sys/sysent.h> | |
56#include <sys/vnode.h> | 52#include <sys/vnode.h> |
57#include <sys/file.h> | 53#include <sys/sem.h> 54#include <sys/shm.h> |
58#include <sys/socket.h> 59#include <sys/socketvar.h> 60#include <sys/sx.h> 61#include <sys/sysctl.h> | 55#include <sys/socket.h> 56#include <sys/socketvar.h> 57#include <sys/sx.h> 58#include <sys/sysctl.h> |
62#include <sys/msg.h> 63#include <sys/sem.h> 64#include <sys/shm.h> | |
65 66#include <fs/devfs/devfs.h> 67 68#include <net/bpfdesc.h> 69#include <net/if.h> 70#include <net/if_types.h> 71#include <net/if_var.h> 72 | 59 60#include <fs/devfs/devfs.h> 61 62#include <net/bpfdesc.h> 63#include <net/if.h> 64#include <net/if_types.h> 65#include <net/if_var.h> 66 |
73#include <vm/vm.h> 74 | |
75#include <security/mac/mac_policy.h> 76 77SYSCTL_DECL(_security_mac); 78 79SYSCTL_NODE(_security_mac, OID_AUTO, test, CTLFLAG_RW, 0, 80 "TrustedBSD mac_test policy controls"); 81 82static int mac_test_enabled = 1; --- 2507 unchanged lines hidden --- | 67#include <security/mac/mac_policy.h> 68 69SYSCTL_DECL(_security_mac); 70 71SYSCTL_NODE(_security_mac, OID_AUTO, test, CTLFLAG_RW, 0, 72 "TrustedBSD mac_test policy controls"); 73 74static int mac_test_enabled = 1; --- 2507 unchanged lines hidden --- |