mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 23:35:37 +00:00
make check: ensure that all tunables include tunables/$FILE.d
(except the deprecated tunables/sys)
This commit is contained in:
@@ -119,7 +119,7 @@ CHECK_PROFILES=$(filter-out ${IGNORE_FILES} ${SUBDIRS}, $(wildcard ${PROFILES_SO
|
|||||||
CHECK_ABSTRACTIONS=$(shell find ${ABSTRACTIONS_SOURCE} -type f -print)
|
CHECK_ABSTRACTIONS=$(shell find ${ABSTRACTIONS_SOURCE} -type f -print)
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check: check-parser check-logprof check-abstractions.d check-extras
|
check: check-parser check-logprof check-abstractions.d check-tunables.d check-extras
|
||||||
|
|
||||||
.PHONY: check-parser
|
.PHONY: check-parser
|
||||||
check-parser: test-dependencies local
|
check-parser: test-dependencies local
|
||||||
@@ -152,6 +152,15 @@ check-abstractions.d:
|
|||||||
grep -q "^ include if exists <abstractions/$${file}.d>$$" $$file || { echo "$$file does not contain 'include if exists <abstractions/$${file}.d>'"; exit 1; } ; \
|
grep -q "^ include if exists <abstractions/$${file}.d>$$" $$file || { echo "$$file does not contain 'include if exists <abstractions/$${file}.d>'"; exit 1; } ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
.PHONY: check-tunables.d
|
||||||
|
check-tunables.d:
|
||||||
|
@echo "*** Checking if all tunables (with a few exceptions) contain include if exists <tunables/*.d>"
|
||||||
|
$(Q)cd apparmor.d/tunables && for file in * ; do \
|
||||||
|
test -d "$$file" && continue ; \
|
||||||
|
test "$$file" = 'sys' && continue ; \
|
||||||
|
grep -q "^include if exists <tunables/$${file}.d>$$" $$file || { echo "$$file does not contain 'include if exists <tunables/$${file}.d>'"; exit 1; } ; \
|
||||||
|
done
|
||||||
|
|
||||||
.PHONY: check-extras
|
.PHONY: check-extras
|
||||||
check-extras:
|
check-extras:
|
||||||
@echo "*** Checking if all extra profiles contain include if exists <local/*>"
|
@echo "*** Checking if all extra profiles contain include if exists <local/*>"
|
||||||
|
Reference in New Issue
Block a user