Possibly not the best example - the people who can afford high walls and private security are usually white. South Africa was run for decades by a minority elite (racist) government that brutally subjugated the majority black population. The exact situation that the article talks about.