diff options
Diffstat (limited to 'kernel/capability.c')
-rw-r--r-- | kernel/capability.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/capability.c b/kernel/capability.c index 58b00519624a..a404b980b1bd 100644 --- a/kernel/capability.c +++ b/kernel/capability.c | |||
@@ -171,8 +171,8 @@ kernel_cap_t cap_set_effective(const kernel_cap_t pE_new) | |||
171 | 171 | ||
172 | spin_lock(&task_capability_lock); | 172 | spin_lock(&task_capability_lock); |
173 | 173 | ||
174 | pE_old = current->cap_effective; | 174 | pE_old = current->cred->cap_effective; |
175 | current->cap_effective = pE_new; | 175 | current->cred->cap_effective = pE_new; |
176 | 176 | ||
177 | spin_unlock(&task_capability_lock); | 177 | spin_unlock(&task_capability_lock); |
178 | 178 | ||