The PRC's Exit-Entry Administration Bureau sits under the Ministry of Public Security (
公安部). It handles passports for Chinese citizens, plus visas, residence permits and entry-exit cards for foreigners — the office that long-term expats in China visit most often.