1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/modules/lomac/Makefile
Ruslan Ermilov 17d6c63672 Drop <bsd.man.mk> support from <bsd.kmod.mk>.
Not objected to by:	-current
2002-01-11 15:49:02 +00:00

42 lines
1.3 KiB
Makefile

# $FreeBSD$
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>