utils: fix make -C profiles check-logprof fails
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