mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
make check: ensure that all tunables include tunables/$FILE.d
(except the deprecated tunables/sys)
This commit is contained in:
parent
5657799dc7
commit
d6bc107940
1 changed files with 10 additions and 1 deletions
|
@ -119,7 +119,7 @@ CHECK_PROFILES=$(filter-out ${IGNORE_FILES} ${SUBDIRS}, $(wildcard ${PROFILES_SO
|
|||
CHECK_ABSTRACTIONS=$(shell find ${ABSTRACTIONS_SOURCE} -type f -print)
|
||||
|
||||
.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
|
||||
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; } ; \
|
||||
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
|
||||
check-extras:
|
||||
@echo "*** Checking if all extra profiles contain include if exists <local/*>"
|
||||
|
|
Loading…
Add table
Reference in a new issue