Sanjay Balraj Dutt (born 29 July 1959) is an Indian film actor and producer known for his work in Hindi cinema (Bollywood). The son of veteran Hindi film actors Sunil Dutt and Nargis Dutt, he made his acting debut in 1981 and has since appeared in more than 100 Hindi films. Although Dutt has enjoyed great success as a lead actor in genres ranging from romance to comedy, it has been the roles of gangsters, thugs and police officers in the drama and action genres that have won him much appreciation. The Indian media and audiences alike popularly refer to him as Deadly Dutt for his larger-than-life portrayals of such characters.

Abdul Qayyum Abdul Karim Shaikh, who was thought to be a close aide of the terrorists' ringleader, Dawood Ibrahim, was arrested. Dutt had given Qayuum's name to the police when confessing to arms possession, saying that in September 1992 he had bought a pistol from Qayuum in Dubai.  On 31 July 2007, the TADA court sentenced Dutt to six years' rigorous imprisonment for illegal possession of weapons and cleared him of charges relating to the Mumbai blasts. According to The Guardian, "The actor claimed he feared for his life after the notorious "Black Friday" bombings, which were allegedly staged by Mumbai's Muslim-dominated mafia in retaliation for deadly Hindu-Muslim clashes a few months earlier. But the judge rejected this defence and also refused bail." Dutt was returned to jail at Arthur Road and soon after moved to the Yerwada Central Jail in Pune.  Dutt appealed against the sentence and was granted interim bail on 20 August 2007 until such time as the TADA court provided him with a copy of its judgement. On 22 October 2007 Dutt was back in jail but again applied for bail. On 27 November 2007, Dutt was granted bail by the Supreme Court. On 21 March 2013 the Supreme Court upheld the verdict of the TADA court but shortened the sentence to five years' imprisonment. Dutt was given a month to surrender before the authorities.  Dutt has said that "I am not a politician but I belong to a political family." He was persuaded by a close friend to contest the 2009 Lok Sabha elections as a candidate for the Samajwadi Party but withdrew when the court refused to suspend his conviction. He was then appointed General Secretary of the party, leaving that post in December 2010. Answer this question using a quote from the following article:

What did Sanjay Dutt do between 2007 and 2009?
On 31 July 2007, the TADA court sentenced Dutt to six years' rigorous imprisonment for illegal possession of weapons