device_perms: cleanup