git: kernel - Fix panic in broken chroot case

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Mar 26 01:11:21 PDT 2015


commit 20648721706d13ccb5deaacccaae2eca861b93db
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Mar 26 00:48:14 2015 -0700

    kernel - Fix panic in broken chroot case
    
    * If a chroot is broken (e.g. by some process outside the chroot renaming
      a parent directory from inside to outside the chroot), and a process
      within the chroot attempts to '..' past the real root, the system will
      panic on an assertion.  Add a check to detect this case and not panic.
    
    * This patch does not detect other chroot break-out cases.
    
    Reported-by: Balazs Bucsay

Summary of changes:
 sys/kern/vfs_nlookup.c | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/20648721706d13ccb5deaacccaae2eca861b93db


-- 
DragonFly BSD source repository



More information about the Commits mailing list