diff options
-rw-r--r-- | mm/oom_kill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 320d74e707af..c1850bf991cd 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -125,7 +125,7 @@ unsigned long badness(struct task_struct *p, unsigned long uptime) | |||
125 | * Superuser processes are usually more important, so we make it | 125 | * Superuser processes are usually more important, so we make it |
126 | * less likely that we kill those. | 126 | * less likely that we kill those. |
127 | */ | 127 | */ |
128 | if (__capable(p, CAP_SYS_ADMIN) || p->uid == 0 || p->euid == 0) | 128 | if (__capable(p, CAP_SYS_ADMIN) || __capable(p, CAP_SYS_RESOURCE)) |
129 | points /= 4; | 129 | points /= 4; |
130 | 130 | ||
131 | /* | 131 | /* |