home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4739 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.5 KB

  1. Path: sparky!uunet!usc!rpi!uwm.edu!spool.mu.edu!olivea!charnel!rat!koko.csustan.edu!nic.csu.net!gd!oleg
  2. From: oleg@gd. (Oleg Kibirev)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: Detecting if running under chroot
  5. Message-ID: <1992Nov16.231704.3223@nic.csu.net>
  6. Date: 17 Nov 92 07:17:03 GMT
  7. References: <mark.721121538@coombs> <5076@prcrs.prc.com> <1e8lf3INN7q6@smurf.smurf.sub.org>
  8. Organization: Computer Science Departement of California State University in Fresno
  9. Lines: 22
  10. Nntp-Posting-Host: gd.cs.csufresno.edu
  11.  
  12. In article <1e8lf3INN7q6@smurf.smurf.sub.org> urlichs@smurf.sub.org (Matthias Urlichs) writes:
  13. >In comp.unix.wizards, article <5076@prcrs.prc.com>,
  14. >  paul@prcrs.prc.com (Paul Hite) writes:
  15. >> 
  16. >> Well I've played around some public access bbs systems that thew me into a
  17. >> chroot env.  From a practical standpoint, I quickly noticed how little I could
  18. >> do.  It just had the "feel" of a chroot environment.  But I guess that you're
  19. >> looking for a more formal method.  I would examine the inode of the root.  I
  20. >> think something like "ls -id /" should do it.  But I still say that most
  21. >> chroot'd environments that I have seen don't really need much effort to
  22. >> detect.
  23. >> 
  24. >Doesn't work if the chrooted environment resides on the root of another file
  25. >system.
  26. >
  27. >I'd say that any way to detect a chrooted environment from first principles,
  28. >i.e. other than finding a local news server but no newsspool, is declared
  29. >a bug in the OS.
  30. >
  31. Yup. Consider chroot /.
  32.  
  33. Oleg
  34.