XQuery library module for discovering the privileges required by a function.