um: fix ubd_file_size for read-only files
PATCH 1/1 um: fix ubd_file_size for read-only files
Made ubd_file_size not request write access. Fixes use of read-only images.
---
arch/um/drivers/ubd_kern.c +1 -1
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Richard Weinberger
AppliedAm 07.06.2012 16:39, schrieb Martin Pärtel:
Quoted 3 lines
Made
ubd_file_sizenot request write access. Fixes use of read-only images.Signed-off-by Martin Pärtel <[email protected]>
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel