The Home Office may need planning permission before using Cameron Barracks as accommodation.