[qemu_edu] Access devfs read-only in tools.

Update eductl to access devfs entries using O_RDONLY in preparation
for devfs requiring this in a future SDK build.

Fixed: 117747
Change-Id: I48cc32ce02c0e82a4abacb6dea2af37a4d4cc802
Reviewed-on: https://fuchsia-review.googlesource.com/c/sdk-samples/drivers/+/785312
Commit-Queue: Dave Smith <smithdave@google.com>
Reviewed-by: David Gilhooley <dgilhooley@google.com>
diff --git a/src/qemu_edu/tools/eductl.cc b/src/qemu_edu/tools/eductl.cc
index d5b069a..6278375 100644
--- a/src/qemu_edu/tools/eductl.cc
+++ b/src/qemu_edu/tools/eductl.cc
@@ -81,7 +81,7 @@
     fprintf(stderr, "Unable to locate %s device path in search of %s/*/\n", kEduDevicePath, kDevfsRootPath);
     return {};
   }
-  int device = open(device_path.value().c_str(), O_RDWR);
+  int device = open(device_path.value().c_str(), O_RDONLY);
 
   if (device < 0) {
     fprintf(stderr, "Failed to open qemu-edu device %s: %s\n", device_path.value().c_str(), strerror(errno));