Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev perform pathname lookup with NOCHROOT flag



details:   https://anonhg.NetBSD.org/src/rev/bae9b7d42296
branches:  trunk
changeset: 758134:bae9b7d42296
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Oct 21 01:02:34 2010 +0000

description:
perform pathname lookup with NOCHROOT flag

diffstat:

 sys/dev/firmload.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 817caf960277 -r bae9b7d42296 sys/dev/firmload.c
--- a/sys/dev/firmload.c        Wed Oct 20 19:21:04 2010 +0000
+++ b/sys/dev/firmload.c        Thu Oct 21 01:02:34 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: firmload.c,v 1.12 2010/06/24 13:03:08 hannken Exp $    */
+/*     $NetBSD: firmload.c,v 1.13 2010/10/21 01:02:34 jmcneill Exp $   */
 
 /*-
  * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.12 2010/06/24 13:03:08 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.13 2010/10/21 01:02:34 jmcneill Exp $");
 
 /*
  * The firmload API provides an interface for device drivers to access
@@ -244,7 +244,7 @@
        for (path = firmware_path_first(drvname, imgname, pnbuf, &prefix);
             path != NULL;
             path = firmware_path_next(drvname, imgname, pnbuf, &prefix)) {
-               NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, path);
+               NDINIT(&nd, LOOKUP, FOLLOW | NOCHROOT, UIO_SYSSPACE, path);
                error = vn_open(&nd, FREAD, 0);
                if (error == ENOENT)
                        continue;



Home | Main Index | Thread Index | Old Index