]> git.ipfire.org Git - people/stevee/selinux-policy.git/commitdiff
a few fixes
authorChris PeBenito <cpebenito@tresys.com>
Mon, 13 Feb 2006 20:06:05 +0000 (20:06 +0000)
committerChris PeBenito <cpebenito@tresys.com>
Mon, 13 Feb 2006 20:06:05 +0000 (20:06 +0000)
refpolicy/Changelog
refpolicy/Makefile

index 35ef9b18e2d47df7ccd6aabff8eabd9fef25ff86..27c7a81bcaabbce17d47a3f91dfbedce102f357b 100644 (file)
@@ -1,3 +1,7 @@
+- Run python and shell directly to interpret scripts so policy
+  sources need not be executable.
+- Add desc tag XML to booleans and tunables, and add summary
+  to param XML tag, to make future translations possible.
 - Remove unused lvm_vg_t.
 - Many interface renames to improve naming consistency.
 - Merge xdm into xserver.
index 8ef4dca36897f0a6a88267d44c5cebbe6b786a5b..7e6228b5a2b59269dde919a2180c9e986791b163 100644 (file)
@@ -41,7 +41,15 @@ GENHOMEDIRCON := $(SBINDIR)/genhomedircon
 XMLLINT := $(BINDIR)/xmllint
 SECHECK := $(BINDIR)/sechecker
 
-CFLAGS := -Wall
+# interpreters and aux tools
+AWK ?= gawk
+GREP ?= egrep
+M4 ?= m4
+PYTHON ?= python
+SED ?= sed
+SH ?= sh
+
+CFLAGS += -Wall
 
 # policy source layout
 POLDIR := policy
@@ -53,11 +61,11 @@ AVS := $(FLASKDIR)/access_vectors
 
 # policy building support tools
 SUPPORT := support
-GENXML := $(SUPPORT)/segenxml.py
-GENDOC := $(SUPPORT)/sedoctool.py
-GENPERM := $(SUPPORT)/genclassperms.py
+GENXML := $(PYTHON) $(SUPPORT)/segenxml.py
+GENDOC := $(PYTHON) $(SUPPORT)/sedoctool.py
+GENPERM := $(PYTHON) $(SUPPORT)/genclassperms.py
 FCSORT := $(SUPPORT)/fc_sort
-SETTUN := $(SUPPORT)/set_tunables
+SETTUN := $(SH) $(SUPPORT)/set_tunables
 
 # documentation paths
 DOCS = doc
@@ -257,7 +265,7 @@ conf: $(MOD_CONF) $(BOOLEANS) $(GENERATED_TE) $(GENERATED_IF) $(GENERATED_FC)
 
 $(MOD_CONF) $(BOOLEANS): $(POLXML)
        @echo "Updating $(MOD_CONF) and $(BOOLEANS)"
-       $(verbose) cd $(DOCS) && ../$(GENDOC) -t ../$(BOOLEANS) -m ../$(MOD_CONF) -x ../$(POLXML)
+       $(verbose) $(GENDOC) -t $(BOOLEANS) -m $(MOD_CONF) -x $(POLXML)
 
 ########################################
 #
@@ -281,7 +289,7 @@ $(POLXML): $(DETECTED_MODS:.te=.if) $(foreach dir,$(ALL_LAYERS),$(dir)/$(LAYERXM
 html tmp/html: $(POLXML)
        @echo "Building html interface reference documentation in $(HTMLDIR)"
        @mkdir -p $(HTMLDIR)
-       $(verbose) cd $(DOCS) && ../$(GENDOC) -d ../$(HTMLDIR) -T ../$(DOCTEMPLATE) -x ../$(POLXML)
+       $(verbose) $(GENDOC) -d $(HTMLDIR) -T $(DOCTEMPLATE) -x $(POLXML)
        $(verbose) cp $(DOCTEMPLATE)/*.css $(HTMLDIR)
        @touch tmp/html