check permission when setting crypto service