DragonFly BSD
DragonFly commits List (threaded) for 2011-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix fstatfs() and fstatvfs() when called from a null-mounted chroot()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 1 Apr 2011 16:04:45 -0700 (PDT)

commit 92734e3dc3576d68a28eb7d539dd48de730ab82d
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Fri Apr 1 16:03:09 2011 -0700

    kernel - Fix fstatfs() and fstatvfs() when called from a null-mounted chroot()
    
    * These funtions were using the wrong starting mount pointer when calling
      cache_fullpath().  They were using the mount pointer for the open file's
      vnode instead of the overlay (null) mount pointer.
    
      This caused cache_fullpath() to believe the fd represented a file outside
      the chroot and return an error.
    
    Reported-by: Francois Tigeot<ftigeot@wolfpond.org>:

Summary of changes:
 sys/kern/vfs_syscalls.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/92734e3dc3576d68a28eb7d539dd48de730ab82d


-- 
DragonFly BSD source repository



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