--- a/arch/um/drivers/ubd_kern.c 2012-06-01 10:18:44.000000000 +0300 +++ b/arch/um/drivers/ubd_kern.c 2012-06-07 03:41:44.790899305 +0300 @@ -514,7 +514,7 @@ goto out; } - fd = os_open_file(ubd_dev->file, global_openflags, 0); + fd = os_open_file(ubd_dev->file, of_read(OPENFLAGS()), 0); if (fd < 0) return fd;