switch_root and mount move

Cathey, Jim jcathey at ciena.com
Wed May 2 17:06:07 UTC 2012


  mkdir("sub", 0700);
  chroot("sub");
  chdir("../../../../../../../../..");
  chroot(".");

If that works, the kernel is broken IMHO.
Or is this predicated on the CWD not being
somewhere in the chroot path to begin with?

-- Jim



More information about the busybox mailing list