/* check the target process has a UID that matches the current process's  */
static bool check_same_owner(struct task_struct *p)
/* check the target process has a UID that matches the current process's  */
static bool check_same_owner(struct task_struct *p)
{
	const struct cred *cred = current_cred(), *pcred;
	bool match;
	rcu_read_lock();
	pcred = __task_cred(p);
	match = (cred->euid == pcred->euid ||
		 cred->euid == pcred->uid);
	rcu_read_unlock();
	return match;
}