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

Commit cf25a900 authored by Dmitry Shmidt's avatar Dmitry Shmidt Committed by Amit Pundir
Browse files

cpuset: Fix allow_attach hook for cpusets on android.



Change-Id: Idc7e8c998d9b0ca76eba2aad064f69deac7aa4ee
Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
parent 4714019d
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -2045,13 +2045,13 @@ static void cpuset_bind(struct cgroup_subsys_state *root_css)
	mutex_unlock(&cpuset_mutex);
	mutex_unlock(&cpuset_mutex);
}
}


static int cpuset_allow_attach(struct cgroup_taskset *tset)
static int cpuset_allow_attach(struct cgroup_subsys_state *css,
			       struct cgroup_taskset *tset)
{
{
	const struct cred *cred = current_cred(), *tcred;
	const struct cred *cred = current_cred(), *tcred;
	struct task_struct *task;
	struct task_struct *task;
	struct cgroup_subsys_state *css;


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


		if ((current != task) && !capable(CAP_SYS_ADMIN) &&
		if ((current != task) && !capable(CAP_SYS_ADMIN) &&