quiet the awk if modules.conf doesnt exist
This commit is contained in:
parent
ebb884dec2
commit
a3fdcebc6a
@ -141,8 +141,8 @@ DETECTED_MODS := $(sort $(foreach dir,$(ALL_LAYERS),$(wildcard $(dir)/*.te)) $(G
|
|||||||
|
|
||||||
MODBASE := base
|
MODBASE := base
|
||||||
MODMOD := module
|
MODMOD := module
|
||||||
BASE_MODS := $(foreach mod,$(shell awk '/^[[:blank:]]*[[:alpha:]]/{ if ($$3 == "$(MODBASE)") print $$1 }' $(MOD_CONF)),$(subst ./,,$(shell find -iname $(mod).te)))
|
BASE_MODS := $(foreach mod,$(shell awk '/^[[:blank:]]*[[:alpha:]]/{ if ($$3 == "$(MODBASE)") print $$1 }' $(MOD_CONF) 2> /dev/null),$(subst ./,,$(shell find -iname $(mod).te)))
|
||||||
MOD_MODS := $(foreach mod,$(shell awk '/^[[:blank:]]*[[:alpha:]]/{ if ($$3 == "$(MODMOD)") print $$1 }' $(MOD_CONF)),$(subst ./,,$(shell find -iname $(mod).te)))
|
MOD_MODS := $(foreach mod,$(shell awk '/^[[:blank:]]*[[:alpha:]]/{ if ($$3 == "$(MODMOD)") print $$1 }' $(MOD_CONF) 2> /dev/null),$(subst ./,,$(shell find -iname $(mod).te)))
|
||||||
|
|
||||||
# for monolithic policy use all base and module to create policy
|
# for monolithic policy use all base and module to create policy
|
||||||
# for modular policy, use only base
|
# for modular policy, use only base
|
||||||
|
Loading…
Reference in New Issue
Block a user