; and (B) the facility meets all constitutional, Federal statutory, United States Marshals Service, and any applicable State or local standards. (b) Federal community confinement facilities Beginning on the date that is 8 years after the date of the enactment of the End For-Profit Prisons Act of 2017 , the Bureau of Prisons shall not enter into or maintain any contract with any for-profit entity to provide or manage any community confinement facility. (c) Definitions In this section: (1) The term community confinement facility has the meaning given that term in section 115.5 of title 28, Code of Federal Regulations. (2) The term core correctional services means the housing, safeguarding, protecting, and disciplining of individuals charged with or convicted of an offense. . (b) Clerical amendment The table of sections at the beginning of chapter 301 of title 18, United States Code, is amended by adding at the end the following new item: 4015. No contracting out of Federal prison facilities or community confinement facilities. . 3. Transitional provisions (a) Federal correctional facilities The Attorney General shall take appropriate action to phase out existing Bureau of Prison and United States Marshals Service contracts which, at the conclusion of the transition period, will be prohibited under section 4015 of title 18, United States Code. (b) Federal community confinement facilities The Attorney General shall take appropriate action to phase out existing Bureau of Prison contracts which, at the conclusion of the transition period, will be prohibited under section 4015 of title 18, United States Code. 4. Report Not later than 2 years after the date of the enactment of this Act, and every 2 years thereafter, the Attorney General shall submit to Congress a report which describes and evaluates the prison population in the custody of the Bureau of Prisons. The report shall include information regarding the race, gender, age, and nationality of such persons, as well as the location of the custody of such persons. 5.