Question: What is it called when relatives are favored over other people?
Sentence: Favoring relatives (nepotism) or personal friends (cronyism) of an official is a form of illegitimate private gain.
Answer in sentence: yes