; and. . (c) Permission To depart voluntarily Section 240B of the Immigration and Nationality Act ( 8 U.S.C. 1229c ) is amended— (1) by striking Attorney General each place that term appears and inserting Secretary of Homeland Security ; and (2) in subsection (a)(2)(A), by striking 120 days and inserting 30 days . 5. Federal custody of illegal aliens apprehended by State or local law enforcement (a) In general Title II of the Immigration and Nationality Act ( 8 U.S.C. 1151 et seq. ) is amended by inserting after section 240C the following: 240D. Transfer of illegal aliens from State to Federal custody (a) Defined term In this section, the term illegal alien means an alien who— (1) entered the United States without inspection or at any time or place other than that designated by the Secretary of Homeland Security; (2) after entering the United States with inspection at a time and place designated by the Secretary of Homeland Security, was granted parole into the United States; (3) was admitted as a nonimmigrant and, at the time the alien was taken into custody by the State or political subdivision, had failed— (A) to maintain the nonimmigrant status in which the alien was admitted or to which it was changed under section 248; or (B) to comply with the conditions of the status described in subparagraph (A); (4) was admitted as an immigrant and subsequently failed to comply with the requirements of such status