exec: Extend task_is_booster check to cover OxygenOS userspace HALs

Subsequent to 2e20671 ("exec: Add node tampering blacklist function")

This device utilizes vendor.qti.hardware.perf@2.0-service, and
android.hardware.power@1.2-service respectively.

Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: Julian Liu <wlootlxt123@gmail.com>
Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
Signed-off-by: rezaadi0105 <rezaadipangestu5@gmail.com>
This commit is contained in:
Adam W. Willis 2019-12-07 12:32:26 -05:00 committed by Ksawlii
parent 00c4a222bb
commit 1d1f16ce99

View file

@ -147,8 +147,10 @@ static inline bool task_is_booster(struct task_struct *tsk)
char comm[sizeof(tsk->comm)];
get_task_comm(comm, tsk);
return !strcmp(comm, "init") || !strcmp(comm, "NodeLooperThrea") ||
!strcmp(comm, "power@1.2-servi") ||
!strcmp(comm, "power@1.3-servi") ||
!strcmp(comm, "perf@1.0-servic") ||
!strcmp(comm, "perf@2.0-servic") ||
!strcmp(comm, "init.qcom.post_");
}