mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6: CRED: Fix commit_creds() on a process that has no mm
This commit is contained in:
commit
1a7d0f0bec
1 changed files with 2 additions and 1 deletions
|
@ -372,7 +372,8 @@ int commit_creds(struct cred *new)
|
|||
old->fsuid != new->fsuid ||
|
||||
old->fsgid != new->fsgid ||
|
||||
!cap_issubset(new->cap_permitted, old->cap_permitted)) {
|
||||
set_dumpable(task->mm, suid_dumpable);
|
||||
if (task->mm)
|
||||
set_dumpable(task->mm, suid_dumpable);
|
||||
task->pdeath_signal = 0;
|
||||
smp_wmb();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue