Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69db8fca authored by Dmitry Shmidt's avatar Dmitry Shmidt Committed by John Stultz
Browse files

cgroup: fix cgroup_taskset_for_each call in allow_attach() for 4.1



Change-Id: I05013f6e76c30b0ece3671f9f2b4bbdc626cd35c
Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
parent 205cfee7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2671,7 +2671,7 @@ int subsys_cgroup_allow_attach(struct cgroup_subsys_state *css, struct cgroup_ta
	if (capable(CAP_SYS_NICE))
		return 0;

	cgroup_taskset_for_each(task, css, tset) {
	cgroup_taskset_for_each(task, tset) {
		tcred = __task_cred(task);

		if (current != task && !uid_eq(cred->euid, tcred->uid) &&