Make Linux handler run when mmap to procfs.

Change-Id: I98a3d098c5c676f33c83fa4354c623988ee591f2
Refs: #1222
This commit is contained in:
Shiratori, Takehiro
2019-02-05 14:44:23 +09:00
committed by Dominique Martinet
parent f9d8d98af1
commit 97e0219f50

View File

@ -1152,6 +1152,11 @@ static int pager_req_create(ihk_os_t os, int fd, uintptr_t result_pa)
goto out;
}
if (!strcmp(inode->i_sb->s_type->name, "proc")) {
error = -ESRCH;
goto out;
}
if ((file->f_mode & FMODE_READ) && (file->f_mode & FMODE_PREAD)) {
maxprot |= PROT_READ;
}