dibf: dibf better device persmission handling