procfs: Make /proc/<PID>/mem unwritable

refs: #1177
Change-Id: Ibb319221155547febf9126e05a9e322bd9f140cc
This commit is contained in:
Ken Sato
2018-09-25 10:05:41 +09:00
committed by Masamichi Takagi
parent cc1d39e55d
commit 6f9fef2b13
6 changed files with 22 additions and 152 deletions

View File

@ -1109,7 +1109,7 @@ static const struct procfs_entry pid_entry_stuff[] = {
// PROC_LNK("exe", mckernel_readlink),
// PROC_REG("limits", S_IRUSR|S_IWUSR, NULL),
PROC_REG("maps", 0444, &mckernel_buff_io),
PROC_REG("mem", 0600, NULL),
PROC_REG("mem", 0400, NULL),
PROC_REG("pagemap", 0444, NULL),
// PROC_REG("smaps", S_IRUGO, NULL),
// PROC_REG("stat", 0444, &mckernel_buff_io),