Skip to content

utils: fix make -C profiles check-logprof fails

John Johansen requested to merge jjohansen/apparmor:fix-utils-logprof into master

On arch make -C profiles check-logprof

fails with *** Checking profiles from ./apparmor.d against logprof

ERROR: Can't find AppArmor profiles in /etc/apparmor.d make: *** [Makefile:113: check-logprof] Error 1 make: Leaving directory '/build/apparmor/src/apparmor-2.13.3/profiles'

because /etc/apparmor.d/ is not available in the build environment and aa-logprofs --dir argument, is not being passed to init_aa() but used to update profiles_dir after the fact.

Fix this by passing profiledir as an argument to init_aa()

Fixes: #36 (closed) Signed-off-by: John Johansen john.johansen@canonical.com

Merge request reports