Add permission mask decoding