During a pretrial hearing, Salim Hamdan, a former driver for Osama bin Laden, discussed life as a detainee at Guantánamo.