Computes permission gaps from logs.