Update permission control.

Signed-off-by: cyberzhg <cyberzhg@gmail.com>