Use database for whitelisting functions modules are allowed to use. This database of course is automatically generated at build. To add entries do so to misc/whitelist.