View | Details | Raw Unified | Return to bug 68905
Collapse All | Expand All

(-)kern_sig.c (-2 / +7 lines)
Lines 3110-3118 restart: Link Here
3110
	NDFREE(&nd, NDF_ONLY_PNBUF);
3110
	NDFREE(&nd, NDF_ONLY_PNBUF);
3111
	vp = nd.ni_vp;
3111
	vp = nd.ni_vp;
3112
3112
3113
	/* Don't dump to non-regular files or files with links. */
3113
	/*
3114
	 * Don't dump to non-regular files, files with links or files
3115
	 * owned by someone else.
3116
	 */
3114
	if (vp->v_type != VREG ||
3117
	if (vp->v_type != VREG ||
3115
	    VOP_GETATTR(vp, &vattr, cred, td) || vattr.va_nlink != 1) {
3118
	    VOP_GETATTR(vp, &vattr, cred, td) || vattr.va_nlink != 1 ||
3119
	    vattr.va_mode & (S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) ||
3120
	    vattr.va_uid != cred->cr_uid) {
3116
		VOP_UNLOCK(vp, 0);
3121
		VOP_UNLOCK(vp, 0);
3117
		error = EFAULT;
3122
		error = EFAULT;
3118
		goto close;
3123
		goto close;

Return to bug 68905