chroot("/") can't work.

Kazuhiro Fujieda fujieda@jaist.ac.jp
Wed Nov 29 14:12:00 GMT 2000


>>> On Wed, 29 Nov 2000 22:41:02 +0100
>>> Corinna Vinschen <vinschen@redhat.com> said:

> If it's possible to set root to an empty string by calling
> chroot("/") this could result in the ability to break out of the
> chroot environment. This is not ok. But, hmm, this shouldn't
> be possible... 

If cyg_root has been set other than an empty string, chroot("/")
can't set it to an empty string.  The argument is processed by
normalize_posix_path.
____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology


More information about the Cygwin-patches mailing list