1. Short title This Act may be cited as the End For-Profit Prisons Act of 2017 . 2. Elimination of contracting for Federal correctional facilities and community confinement facilities (a) In general Chapter 301 of title 18, United States Code, is amended by adding at the end the following: 4015. No contracting out of Federal prison facilities or community confinement facilities (a) Federal correctional facilities generally Beginning on the date that is 6 years after the date of the enactment of the End For-Profit Prisons Act of 2017 — (1) all core correctional services at each correctional facility which is used by the Bureau of Prisons for the confinement of persons serving sentences of imprisonment for Federal offenses shall be performed by employees of the Federal Government; and (2) all core correctional services at each correctional facility which is used by the United States Marshals Service for the confinement of persons in the custody of the United States Marshals Service shall be performed by employees of the Federal Government, except that the United States Marshals Service may enter and maintain a contract with a facility operated by a State or unit of local government if— (A) the core correctional services at such correctional facility are performed by employees of such State or unit of local government