An Australian judge ruled against inmate Andre McKechnie, upholding a prison ban on Vegemite over concerns it could be used to brew alcohol.