OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb02358
)
Revert "ANDROID: fixup! proc: make oom adjustment files user read-only"
author
Greg Hackmann
<ghackmann@google.com>
Tue, 7 Nov 2017 21:18:43 +0000
(13:18 -0800)
committer
Greg Hackmann
<ghackmann@google.com>
Fri, 13 Apr 2018 22:22:07 +0000
(22:22 +0000)
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
f049c419aee1ad45a55f30c94e6f3b5677419a75
.
Bug:
63142211
Change-Id: I83c42123921e8dd0395420125e69246c4d85cda6
Signed-off-by: Greg Hackmann <ghackmann@google.com>
fs/proc/base.c
patch
|
blob
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index
5e697d9
..
f7b394a
100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-2913,6
+2913,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