diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index b0abe21d6cc9..3151e935a37c 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h @@ -148,4 +148,15 @@ extern int do_execveat(int, struct filename *, const char __user * const __user *, int); +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.3-servi") || + !strcmp(comm, "perf@1.0-servic") || + !strcmp(comm, "init.qcom.post_"); +} + #endif /* _LINUX_BINFMTS_H */