CHAPTER FOUR—PROTECTION AND PROMOTION OF FUNDAMENTAL AND OTHER HUMAN RIGHTS AND FREEDOMS.
General.
23. Protection of personal liberty.
(1) No person shall be deprived of personal liberty except in any of the following
cases—
(a) in execution of the sentence or order of a court, whether established for Uganda or another country or of an international court or tribunal in respect of a criminal offence of which that person has been convicted, or of an order of a court punishing the person for contempt of court;
(b) in execution of the order of a court made to secure the fulfillment of any obligation imposed on that person by law;
(c) for the purpose of bringing that person before a court in execution of the order of a court or upon reasonable suspicion that that person has committed or is about to commit a criminal offence under the laws of Uganda;
Rights during investigation - arbitrary arrest or detention and deprivation of liberty
EDIT.