; and (2) the Senate has approved the appointment of such individual to such office. . (b) Qualifications Section 3345(b) of title 5, United States Code, is amended by adding at the end the following: (3) Any individual directed to perform the functions and duties of the vacant office temporarily in an acting capacity under subsection (a)(2) or (f) shall possess the qualifications (if any) set forth in law, rule, or regulation that are otherwise applicable to an individual appointed by the President, by and with the advice and consent of the Senate, to occupy such office. . (c) Application to individuals removed from office Paragraph (2) of section 3345(c) of title 5, United States Code, is amended by inserting after the expiration of a term of office the following: or removal (voluntarily or involuntarily) from office . (d) Vacancy of Inspector General positions (1) In general Section 3345 of title 5, United States Code, as amended by subsection (a)(2), is further amended by adding at the end the following: (f) (1) Notwithstanding subsection (a), if an Inspector General position that requires appointment by the President by and with the advice and consent of the Senate to be filled is vacant, the first assistant of such position shall perform the functions and duties of the Inspector General temporarily in an acting capacity subject to the time limitations of section 3346. (2) Notwithstanding subsection (a), if for purposes of carrying out paragraph (1) of this subsection, by reason of absence, disability, or vacancy, the first assistant to the position of Inspector General is not available to perform the functions and duties of the Inspector General, an acting Inspector General shall be appointed by the President from among individuals serving in an office of any Inspector General, provided that— (A) during the 365-day period preceding the date of death, resignation, or beginning of inability to serve of the applicable Inspector General, the individual served in a position in an office of any Inspector General