/* Check permission between current and another task, e.g. signal checks, fork check, ptrace check, etc. current is the actor and tsk2 is the target */
static int current_has_perm(const struct task_struct *tsk, u32 perms)
/* Check permission between current and another task, e.g. signal checks, fork check, ptrace check, etc. current is the actor and tsk2 is the target */
static int current_has_perm(const struct task_struct *tsk, u32 perms)
{
	u32 sid, tsid;
	sid = current_sid();
	tsid = task_sid(tsk);
	return avc_has_perm(sid, tsid, SECCLASS_PROCESS, perms, NULL);
}