8 CFR § 245.1 Eligibility.
(a) General. Any alien who is physically present in the United States, except for an alien who is ineligible to apply for adjustment of status under paragraph (b) or (c) of this section, may apply for adjustment of status to that of a lawful permanent resident of the United States if the applicant is eligible to receive an immigrant visa and an immigrant visa is immediately available at the time of filing of the application. A special immigrant described under section 101(a)(27)(J) of the Act shall be deemed, for the purpose of applying the adjustment to status provisions of section 245(a) of the Act, to have been paroled into the United States, regardless of the actual method of entry into the United States.
[Did you make a legal entry in the first place, if NOT then the unauthorized work is irrelevant.]
(b) Restricted aliens. The following categories of aliens are ineligible to apply for adjustment of status to that of a lawful permanent resident alien under section 245 of the Act, unless the alien establishes eligibility under the provisions of section 245(i) of the Act and §245.10, is not included in the categories of aliens prohibited from applying for adjustment of status listed in §245.1(c), is eligible to receive an immigrant visa, and has an immigrant visa immediately available at the time of filing the application for adjustment of status:
(1) Any alien who entered the United States in transit without a visa;
(2) Any alien who, on arrival in the United States, was serving in any capacity on board a vessel or aircraft or was destined to join a vessel or aircraft in the United States to serve in any capacity thereon;
(3) Any alien who was not admitted or paroled following inspection by an immigration officer;
(4) Any alien who, on or after January 1, 1977, was employed in the United States without authorization prior to filing an application for adjustment of status. This restriction shall not apply to an alien who is:
(i) An immediate relative as defined in section 201(b) of the Act; [This is YOU!]
(ii) A special immigrant as defined in section 101(a)(27)(H) or (J) of the Act;
(iii) Eligible for the benefits of Public Law 101–238 (the Immigration Nursing Relief Act of 1989) and files an application for adjustment of status on or before October 17, 1991; or
(iv) Eligible for the benefits of Public Law 101–238 (the Immigration Nursing Relief Act of 1989), and has not entered into or continued in unauthorized employment on or after November 29, 1990.
etc....