summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2018-04-02 14:03:23 -0700
committerGreg Hackmann <ghackmann@google.com>2018-04-13 15:23:32 -0700
commite5882583019dd1179aa6182314b3fb354b603186 (patch)
tree64aa4cfa69094ac85582c92721fcf786beeaf9fe /fs/proc
parentc6743a3ae71ba7653d967a14ceccea00c8e9c0ec (diff)
Revert "fixup! proc: make oom adjustment files user read-only"
CTS no longer expects oom_{adj,score_adj} to be read-only. See https://android-review.googlesource.com/530687/ for additional context. This reverts commit 87a7a2cfbe48c29e48ed846d939f82d710780d99. Bug: 63142211 Change-Id: I1d1b33c93ca6b6c16a9c1d5430dcb5cbe3ec894c Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 247ed9b0786f..f558b4bd5d6a 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2877,6 +2877,7 @@ static const struct pid_entry tgid_base_stuff[] = {
ONE("cgroup", S_IRUGO, proc_cgroup_show),
#endif
ONE("oom_score", S_IRUGO, proc_oom_score),
+ INF("oom_score", S_IRUGO, proc_oom_score),
REG("oom_adj", S_IRUSR, proc_oom_adj_operations),
REG("oom_score_adj", S_IRUSR, proc_oom_score_adj_operations),
#ifdef CONFIG_AUDITSYSCALL