Immunity to mycobacteria