add distro tunables. expand on a few comments

This commit is contained in:
Chris PeBenito 2005-07-13 18:08:12 +00:00
parent b24f35d8a3
commit 25a0c61ffc
1 changed files with 19 additions and 1 deletions

View File

@ -20,7 +20,10 @@
# Configurable portions of the Makefile
#
# Override default policy version
# Policy version
# By default, checkpolicy will create the highest
# version policy it supports. Setting this will
# override the version.
#OUTPUT_POLICY = 18
# Policy Type
@ -28,11 +31,21 @@
# strict and strict-mls are currently supported.
TYPE = strict
# Policy Name
# If set, this will be used as the policy
# name. Otherwise the policy type will be
# used for the name.
NAME = refpolicy
# Distribution
# Some distributions have portions of policy
# for programs or configurations specific to the
# distribution. Setting this will enable options
# for the distribution.
# redhat, gentoo, debian, and suse are current options.
# Fedora users should enable redhat.
#DISTRO = redhat
# Build monolithic policy. Putting n here
# will build a loadable module policy.
# Only monolithic policies are currently supported.
@ -76,6 +89,11 @@ ifneq ($(findstring targeted,$(TYPE)),)
override M4PARAM += -D targeted_policy
endif
# enable distribution-specific policy
ifneq ($(DISTRO),)
override M4PARAM += -D distro_$(DISTRO)
endif
ifeq ($(MONOLITHIC),y)
override M4PARAM += -D monolithic_policy
endif