Homeland Security Secretary Janet Napolitano is leaving her post to become the president of the University of California.