add permission manager

Change-Id: I688b3eacc18746dd605b6c597c001858fbafdd5d