[apparmor] [PATCH 17/18] apparmor: Add interface files for profiles and namespaces

John Johansen john.johansen at canonical.com
Fri Jul 27 08:00:43 UTC 2012


On 07/27/2012 12:54 AM, Seth Arnold wrote:
> That ARRAY_LEN macro scares me; there are so many potential uses that could give an incorrect answer that I'd _really_ rather see it replaced with a hardcoded enum or define in the same place as AAFS_PROF_PROFS and related values.

hehe I quite like that little macro, but yes that actually already mostly
happened during the cleanup, we have a AAFS_PROF_LEN and AAFS_NS_LEN that
is used to set the array len, not sure why I didn't change the bits that
use ARRAY_LEN.



More information about the AppArmor mailing list