Skip to content

Commit

Permalink
SCHEDULER: Autogroup patch group by current user android UID instead …
Browse files Browse the repository at this point in the history
…of task ID
  • Loading branch information
Lance Poore authored and AirOne70 committed Oct 2, 2017
1 parent 61445b4 commit 9bb4ac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ static int set_user(struct cred *new)

free_uid(new->user);
new->user = new_user;
sched_autogroup_create_attach(current);
return 0;
}

Expand Down Expand Up @@ -1165,7 +1166,7 @@ SYSCALL_DEFINE0(setsid)
write_unlock_irq(&tasklist_lock);
if (err > 0) {
proc_sid_connector(group_leader);
sched_autogroup_create_attach(group_leader);

}
return err;
}
Expand Down
2 changes: 1 addition & 1 deletion kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static struct ctl_table kern_table[] = {
.data = &sysctl_sched_autogroup_enabled,
.maxlen = sizeof(unsigned int),
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
.proc_handler = proc_dointvec,
.extra1 = &zero,
.extra2 = &one,
},
Expand Down

0 comments on commit 9bb4ac5

Please sign in to comment.