[PATCH openEuler-1.0-LTS 35/41] share_pool: Extract sp_check_caller_permission