* [uml-devel] [PATCH] um: fix ubd_file_size for read-only files
@ 2012-06-07 14:39 Martin Pärtel
2012-06-07 22:16 ` Richard Weinberger
0 siblings, 1 reply; 2+ messages in thread
From: Martin Pärtel @ 2012-06-07 14:39 UTC (permalink / raw)
To: user-mode-linux-devel
Made ubd_file_size not request write access. Fixes use of read-only images.
Signed-off-by: Martin Pärtel <martin.partel@gmail.com>
---
diff -uprN -X linux-3.4.1/Documentation/dontdiff linux-3.4.1/arch/um/drivers/ubd_kern.c linux-3.4.1-mod/arch/um/drivers/ubd_kern.c
--- linux-3.4.1/arch/um/drivers/ubd_kern.c 2012-06-01 10:18:44.000000000 +0300
+++ linux-3.4.1-mod/arch/um/drivers/ubd_kern.c 2012-06-07 17:02:38.625453504 +0300
@@ -514,7 +514,7 @@ static inline int ubd_file_size(struct u
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;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [uml-devel] [PATCH] um: fix ubd_file_size for read-only files
2012-06-07 14:39 [uml-devel] [PATCH] um: fix ubd_file_size for read-only files Martin Pärtel
@ 2012-06-07 22:16 ` Richard Weinberger
0 siblings, 0 replies; 2+ messages in thread
From: Richard Weinberger @ 2012-06-07 22:16 UTC (permalink / raw)
To: user-mode-linux-devel
Am 07.06.2012 16:39, schrieb Martin Pärtel:
> Made ubd_file_size not request write access. Fixes use of read-only images.
>
> Signed-off-by: Martin Pärtel <martin.partel@gmail.com>
Applied!
Thanks,
//richard
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-07 23:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-07 14:39 [uml-devel] [PATCH] um: fix ubd_file_size for read-only files Martin Pärtel
2012-06-07 22:16 ` Richard Weinberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox