add distro tunables. expand on a few comments
This commit is contained in:
parent
b24f35d8a3
commit
25a0c61ffc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue