Hajj permits are given to nations based on a quota system and Saudi Arabia requires each pilgrim to acquire one of the 1.8 million available licences to legally access Mecca.