The San Francisco 49ers signed defensive lineman Glenn Dorsey.