Merge "Check that caller has correct permissions when attesting device IDs"