Revert "build: remove privileged modules exception"

This reverts commit 403332793a2a031c8435d079e638483fb6ea2133.