; (B) in subparagraph (C), by striking Attorney General and inserting Secretary ; and (C) by amending subparagraph (D) to read as follows: (D) to obey reasonable restrictions on the alien’s conduct or activities, or to perform affirmative acts, that the Secretary prescribes for the alien, in order to prevent the alien from absconding, for the protection of the community, or for other purposes related to the enforcement of the immigration laws. . (4) Aliens imprisoned, arrested, or on parole, supervised release, or probation Paragraph (4) of section 241(a) of the Immigration and Nationality Act ( 8 U.S.C. 1231(a)(4) ) is amended— (A) in subparagraph (A), by striking Attorney General and inserting Secretary of Homeland Security ; and (B) in subparagraph (B)— (i) in the matter preceding clause (i), by striking Attorney General and inserting Secretary of Homeland Security ; (I) in clause (i), by striking if the Attorney General and inserting if the Secretary ; and (II) in clause (ii)(III), by striking Attorney General and inserting Secretary . (5) Reinstatement of removal orders against aliens illegally reentering (A) Paragraph (5) of section 241(a) of the Immigration and Nationality Act ( 8 U.S.C. 1231(a)(5) ) is amended to read as follows: (5) Reinstatement of removal orders against aliens illegally reentering If the Secretary of Homeland Security finds that an alien has entered the United States illegally after having been removed, deported, or excluded or having departed voluntarily, under an order of removal, deportation, or exclusion, regardless of the date of the original order or the date of the illegal entry— (A) the order of removal, deportation, or exclusion is reinstated from its original date and is not subject to being reopened or reviewed notwithstanding section 242(a)(2)(D); (B) the alien is not eligible and may not apply for any relief under this Act, regardless of the date that an application or request for such relief may have been filed or made