; and (B) require the alien to seek permanent residence by applying for an immigrant visa at a United States embassy or consulate in the alien’s home country or other foreign country, as designated by the Secretary of State. . (2) Clerical amendment The table of contents in the first section of the Immigration and Nationality Act is amended by striking the item relating to section 245 and inserting the following: Sec. 245. Adjustment of status to that of a person admitted for permanent residence. . (b) Prohibition on terrorists and aliens who pose a threat to national security or public safety on adjustment to lawful permanent resident status Section 245(c) of the Immigration and Nationality Act ( 8 U.S.C. 1255(c) ) is amended to read as follows: (c) Aliens not eligible for adjustment of status Except for an alien having an approved petition for classification as a VAWA self-petitioner, subsection (a) shall not apply to— (1) an alien crewman; (2) subject to subsection (k), any alien (other than an immediate relative defined in section 201(b) or a special immigrant described in subparagraph (H), (I), (J), or (K) of section 101(a)(27)) who— (A) continues in or accepts unauthorized employment before filing an application for adjustment of status; (B) is in unlawful immigration status on the date he or she files an application for adjustment of status; or (C) has failed (other than through no fault of his or her own or for technical reasons) to maintain continuously a lawful status since entry into the United States; (3) any alien admitted in transit without visa under section 212(d)(4)(C); (4) an alien (other than an immediate relative as defined in section 201(b)) who was admitted as a nonimmigrant visitor without a visa under section 212(l) or section 217; (5) an alien who was admitted as a nonimmigrant under section 101(a)(15)(S); (6) an alien described in subparagraph (B), (F), or (G) of section 237(a)(4)