Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a6594d7 authored by Greg Hackmann's avatar Greg Hackmann
Browse files

Revert "ANDROID: 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 2956c9be.

Bug: 63142211
Change-Id: I9ff2728531eb2b09b5ddb19da51eacf6e4316dd6
Signed-off-by: default avatarGreg Hackmann <ghackmann@google.com>
parent 4405a1f7
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -2913,9 +2913,8 @@ 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),
	REG("oom_adj",    S_IRUGO|S_IWUSR, proc_oom_adj_operations),
	REG("oom_score_adj", S_IRUGO|S_IWUSR, proc_oom_score_adj_operations),
#ifdef CONFIG_AUDITSYSCALL
	REG("loginuid",   S_IWUSR|S_IRUGO, proc_loginuid_operations),
	REG("sessionid",  S_IRUGO, proc_sessionid_operations),
@@ -3308,8 +3307,8 @@ static const struct pid_entry tid_base_stuff[] = {
	ONE("cgroup",  S_IRUGO, proc_cgroup_show),
#endif
	ONE("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),
	REG("oom_adj",   S_IRUGO|S_IWUSR, proc_oom_adj_operations),
	REG("oom_score_adj", S_IRUGO|S_IWUSR, proc_oom_score_adj_operations),
#ifdef CONFIG_AUDITSYSCALL
	REG("loginuid",  S_IWUSR|S_IRUGO, proc_loginuid_operations),
	REG("sessionid",  S_IRUGO, proc_sessionid_operations),