Skip to content

Commit

Permalink
Revert commit to make oom files read only
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ghosal authored and ghosalmartin committed Oct 9, 2018
1 parent 66ba19c commit 4aabd7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/proc/base.c
Expand Up @@ -2949,8 +2949,8 @@ static const struct pid_entry tgid_base_stuff[] = {
REG("cgroup", S_IRUGO, proc_cgroup_operations),
#endif
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),
Expand Down Expand Up @@ -3352,8 +3352,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_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),
Expand Down

0 comments on commit 4aabd7c

Please sign in to comment.