[apparmor] [patch] profiles/Makefile: make sure all profiles have #include <local/...>

Christian Boltz apparmor at cboltz.de
Sun Jan 19 19:24:49 UTC 2014


Hello,

the following patch makes sure all profiles have a line
  #include <local/...>

BTW: All profiles pass this test :-)  but having an additional check 
can never hurt.


=== modified file 'profiles/Makefile'
--- profiles/Makefile   2013-01-05 00:33:41 +0000
+++ profiles/Makefile   2014-01-19 19:22:56 +0000
@@ -44,6 +44,7 @@
        for profile in ${TOPLEVEL_PROFILES}; do \
                fn=$$(basename $$profile); \
                echo "# Site-specific additions and overrides for '$$fn'" > ${PROFILES_SOURCE}/local/$$fn; \
+               grep "include\\s\\s*<local/$$fn>" "$$profile" >/dev/null || { echo "$$profile doesn't contain #include <local/$$fn>" ; exit 1; } ; \
        done; \
 
 .PHONY: install



Regards,

Christian Boltz
-- 
   116: Programm
          Sobald eine Datei von einem Virus infiziert werden kann, ist
          es ein Programm. (Markus Kuhn)




More information about the AppArmor mailing list