This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: chroot("/") can't work.


>>> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]