head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


1.5
date	2002.12.03.15.12.35;	author rwatson;	state dead;
branches;
next	1.4;

1.4
date	2002.01.11.15.48.50;	author ru;	state Exp;
branches;
next	1.3;

1.3
date	2002.01.11.01.19.25;	author msmith;	state Exp;
branches;
next	1.2;

1.2
date	2001.11.19.22.36.34;	author green;	state Exp;
branches;
next	1.1;

1.1
date	2001.11.19.05.09.11;	author green;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Unhook the old LOMAC module, now replaced with mac_lomac.

Approved by:	re (jhb)
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
@
text
@# $FreeBSD: src/sys/modules/lomac/Makefile,v 1.4 2002/01/11 15:48:50 ru Exp $

KMOD=	lomac
SRCS=	vnode_if.h kernel_lkm.c kernel_interface.c kernel_util.c \
	kernel_log.c kernel_mediate.c lomacfs_vfsops.c lomacfs_vnops.c \
	lomacfs_subr.c kernel_monitor.c kernel_mmap.c kernel_pipe.c \
	kernel_socket.c
SUBDIR+=	syscall_gate
SUBDIR+=	plm
CFLAGS+=	-I${.CURDIR}/../../security/lomac
CFLAGS+=	-DUSES_LOCKMGR		# necessary until VM uses sx locks
#CFLAGS+=	-DP_CAN_HOOKS	# There are no hooks for p_can*() ops in the
#				  kernel yet.  Until then, all subject-subject
#				  mediation is effectively "off".
#CFLAGS+=	-DLOMAC_DEBUG_LOOKUPSTATS	# relatively cheap
#CFLAGS+=	-DLOMAC_DEBUG_NODE_ALLOC	# pretty verbose
#CFLAGS+=	-DLOMAC_DEBUG_LINK		# pretty verbose
#CFLAGS+=	-DLOMAC_DEBUG_INCNAME		# can starve memory
#CFLAGS+=	-DLOMAC_DEBUG_INACTIVE		# extremely verbose
#CFLAGS+=	-DLOMAC_DEBUG_RECLAIM		# extremely verbose
#CFLAGS+=	-DLOMAC_DEBUG_LOOKUP		# extremely verbose
#CFLAGS+=	-DLOMAC_DEBUG_PIPE		# relatively cheap
#CFLAGS+=	-DLOMAC_DEBUG_RECWD		# only happens once

EXPORT_SYMS=	YES	# XXX evaluate

.PATH:	${.CURDIR}/../../security/lomac

load-all:	all
	@@cd ${.CURDIR}/syscall_gate; ${MAKE} load
	@@cd ${.CURDIR}/plm; ${MAKE} load
	@@${MAKE} load

kldunload-binacts:
	-/sbin/kldunload linux
	-/sbin/kldunload svr4

start:	kldunload-binacts load-all

.include "Makefile.inc"
.include <bsd.kmod.mk>
@


1.4
log
@Drop <bsd.man.mk> support from <bsd.kmod.mk>.

Not objected to by:	-current
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.3
log
@Turn on unconditional symbol export for modules whose API is
not clear enough, will require additional analysis, or will
require some input from their maintainers.
@
text
@a7 1
NOMAN=	yes
@


1.2
log
@Reference lomac in its new location.
@
text
@d26 2
@


1.1
log
@Add module compile framework for LOMAC.

Sponsored by:	DARPA, NAI Labs (CBOSS project)
@
text
@d11 1
a11 1
CFLAGS+=	-I${.CURDIR}/../../contrib/lomac
d26 1
a26 1
.PATH:	${.CURDIR}/../../contrib/lomac
@

