View | Details | Raw Unified | Return to bug 29844 | Differences between
and this patch

Collapse All | Expand All

(-)kern_prot.c (-1 / +1 lines)
Lines 368-374 Link Here
368
	if (uap->pgid < 0)
368
	if (uap->pgid < 0)
369
		return (EINVAL);
369
		return (EINVAL);
370
	if (uap->pid != 0 && uap->pid != curp->p_pid) {
370
	if (uap->pid != 0 && uap->pid != curp->p_pid) {
371
		if ((targp = pfind(uap->pid)) == NULL || !inferior(targp)) {
371
		if ((targp = pfind(uap->pid)) == NULL || (!suser(curp) && !inferior(targp))) {
372
			if (targp)
372
			if (targp)
373
				PROC_UNLOCK(targp);
373
				PROC_UNLOCK(targp);
374
			return (ESRCH);
374
			return (ESRCH);

Return to bug 29844