Railroad police or railway police are people responsible for the protection of railroad properties, facilities, revenue, equipment, and personnel, as well as carried passengers and cargo. Railroad police may also patrol public rail transit systems.
Their exact roles differ from country to country. From Wikipedia