The director of novices and his associate and the rector of a seminary or other institute of education are not to hear the sacramental confessions of their students residing in the same house unless the students freely request it in particular cases.
Source: Code of Canon Law (Vatican.va)