Fixed permission issues when accessing devices (char/block)