mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 11:55:24 +00:00
parent
66d5359d75
commit
2a3cebdd6e
@ -1258,7 +1258,7 @@ int Libc::Vfs_plugin::rename(char const *from_path, char const *to_path)
|
||||
void *Libc::Vfs_plugin::mmap(void *addr_in, ::size_t length, int prot, int flags,
|
||||
Libc::File_descriptor *fd, ::off_t offset)
|
||||
{
|
||||
if (prot != PROT_READ) {
|
||||
if (prot != PROT_READ && !(prot == (PROT_READ | PROT_WRITE) && flags == MAP_PRIVATE)) {
|
||||
Genode::error("mmap for prot=", Genode::Hex(prot), " not supported");
|
||||
errno = EACCES;
|
||||
return (void *)-1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user