diff options
| author | Rom Lemarchand <romlem@android.com> | 2015-03-07 09:38:05 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 11:00:07 +0200 |
| commit | 69a4bcd7f2e8005db7865140b8d1dc20c725d35e (patch) | |
| tree | 6fcbfd5ff8a49f2f95247975dde175046de8a361 | |
| parent | a9aa472ae6d84c64fee127027ab6fd522be4dbcf (diff) | |
proc: make oom adjustment files user read-only
Make oom_adj and oom_score_adj user read-only.
Bug: 19636629
Change-Id: I055bb172d5b4d3d856e25918f3c5de8edf31e4a3
Signed-off-by: Rom Lemarchand <romlem@google.com>
| -rw-r--r-- | fs/proc/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index e16a126b8..aadab1443 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -3154,8 +3154,8 @@ static const struct pid_entry tid_base_stuff[] = { REG("cgroup", S_IRUGO, proc_cgroup_operations), #endif INF("oom_score", S_IRUGO, proc_oom_score), - REG("oom_adj", S_IRUGO|S_IWUSR, proc_oom_adj_operations), - REG("oom_score_adj", S_IRUGO|S_IWUSR, proc_oom_score_adj_operations), + REG("oom_adj", S_IRUSR, proc_oom_adj_operations), + REG("oom_score_adj", S_IRUSR, proc_oom_score_adj_operations), #ifdef CONFIG_AUDITSYSCALL REG("loginuid", S_IWUSR|S_IRUGO, proc_loginuid_operations), REG("sessionid", S_IRUGO, proc_sessionid_operations), |
