1. Short title This Act may be cited as the Justice is Not For Sale Act of 2017 . 2. Definitions In this Act— (1) the term core correctional services means the housing, transporting, safeguarding, protecting, and disciplining of individuals— (A) charged with or convicted of an offense; or (B) who are in custody for purposes of enforcing the immigration laws, as defined in section 101(a) of the Immigration and Nationality Act ( 8 U.S.C. 1101(a) ); (2) the term local government means a city, county, township, town, borough, parish, village, or other general purpose political subdivision of a State; and (3) the term State means a State of the United States, the District of Columbia, the Commonwealth of Puerto Rico, or another commonwealth, territory, or possession of the United States. 3. Elimination of Federal contracts for privately run prisons within 3 years (a) Definition In this section, the term facility housing adult prisoners or detainees in the custody of the Federal Government does not include a community correctional facility or the residence of an individual on home confinement, as described in section 3624(c) of title 18, United States Code. (b) Operational control Except as provided in subsection (c), not later than 2 years after the date of enactment of this Act— (1) each facility housing adult prisoners or detainees in the custody of the Federal Government shall be under the direct, operational control of the Federal Government