Rioting harms innocent people and isn't directed at the source of the problem. So I would agree that is illegitimate and not very useful. Vandalism and rebelling can be legitimate, but need to be careful and done correctly. A legitimate rebellion often just turns into rioting and killing and that isn't legitimate. Also violence should always be the last action.