diff options
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r-- | mm/oom_kill.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 64e5b4bcd964..34a458aa7997 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -129,8 +129,8 @@ unsigned long badness(struct task_struct *p, unsigned long uptime) | |||
129 | * Superuser processes are usually more important, so we make it | 129 | * Superuser processes are usually more important, so we make it |
130 | * less likely that we kill those. | 130 | * less likely that we kill those. |
131 | */ | 131 | */ |
132 | if (has_capability(p, CAP_SYS_ADMIN) || | 132 | if (has_capability_noaudit(p, CAP_SYS_ADMIN) || |
133 | has_capability(p, CAP_SYS_RESOURCE)) | 133 | has_capability_noaudit(p, CAP_SYS_RESOURCE)) |
134 | points /= 4; | 134 | points /= 4; |
135 | 135 | ||
136 | /* | 136 | /* |
@@ -139,7 +139,7 @@ unsigned long badness(struct task_struct *p, unsigned long uptime) | |||
139 | * tend to only have this flag set on applications they think | 139 | * tend to only have this flag set on applications they think |
140 | * of as important. | 140 | * of as important. |
141 | */ | 141 | */ |
142 | if (has_capability(p, CAP_SYS_RAWIO)) | 142 | if (has_capability_noaudit(p, CAP_SYS_RAWIO)) |
143 | points /= 4; | 143 | points /= 4; |
144 | 144 | ||
145 | /* | 145 | /* |