Use UIO_SYSSPACE for NDINIT. Found by Eike Dehling.

This commit is contained in:
martin 2005-04-03 17:29:15 +00:00
parent b97cb66e62
commit b14ee41fe5

View File

@ -1,4 +1,4 @@
/* $NetBSD: verified_exec.c,v 1.5 2005/02/27 00:26:58 perry Exp $ */ /* $NetBSD: verified_exec.c,v 1.6 2005/04/03 17:29:15 martin Exp $ */
/*- /*-
* Copyright (c) 1998-1999 Brett Lymn * Copyright (c) 1998-1999 Brett Lymn
@ -30,7 +30,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.5 2005/02/27 00:26:58 perry Exp $"); __KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.6 2005/04/03 17:29:15 martin Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -212,7 +212,7 @@ verifiedexecioctl(dev_t dev, u_long cmd, caddr_t data, int flags,
* along with it's fingerprint in a list for * along with it's fingerprint in a list for
* exec to use later. * exec to use later.
*/ */
NDINIT(&nid, LOOKUP, FOLLOW, UIO_USERSPACE, NDINIT(&nid, LOOKUP, FOLLOW, UIO_SYSSPACE,
params->file, p); params->file, p);
if ((error = vn_open(&nid, FREAD, 0)) != 0) { if ((error = vn_open(&nid, FREAD, 0)) != 0) {
return(error); return(error);