If the written lease agreement that you presumably have sets forth such a disclsoure that you are writing about that allows your landlord access to your hallway then such is allowable. If you do not like such, as the landlord to place a dead bolt accessible from your hallway to prevent access.