It is 100% legal. The only thing that can happen is that the university can implement a disciplinary hearing against you if they were to discover that you carried a firearm, knife, any other dangerous weapon etc.

Personally, ensure you have a proper belt and holster and conceal and carry on campus as per normal. Also limit the amount of people you tell that you carry a firearm to your immediate/very close friends. Anyway that is what I did and still do at UCT.