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

  1. Path: sparky!uunet!snorkelwacker.mit.edu!ira.uka.de!smurf.sub.org!news
  2. From: urlichs@smurf.sub.org (Matthias Urlichs)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: Detecting if running under chroot
  5. Date: 16 Nov 1992 18:23:47 +0100
  6. Organization: University of Karlsruhe, FRG
  7. Lines: 25
  8. Message-ID: <1e8lf3INN7q6@smurf.smurf.sub.org>
  9. References: <1992Nov3.183208.20956@newsgate.sps.mot.com> <mark.721121538@coombs> <5076@prcrs.prc.com>
  10. NNTP-Posting-Host: 127.0.0.1
  11.  
  12. In comp.unix.wizards, article <5076@prcrs.prc.com>,
  13.   paul@prcrs.prc.com (Paul Hite) writes:
  14. > Well I've played around some public access bbs systems that thew me into a
  15. > chroot env.  From a practical standpoint, I quickly noticed how little I could
  16. > do.  It just had the "feel" of a chroot environment.  But I guess that you're
  17. > looking for a more formal method.  I would examine the inode of the root.  I
  18. > think something like "ls -id /" should do it.  But I still say that most
  19. > chroot'd environments that I have seen don't really need much effort to
  20. > detect.
  21. Doesn't work if the chrooted environment resides on the root of another file
  22. system.
  23.  
  24. I'd say that any way to detect a chrooted environment from first principles,
  25. i.e. other than finding a local news server but no newsspool, is declared
  26. a bug in the OS.
  27.  
  28. -- 
  29. What if everything is an illusion and nothing exists?  In that case, I
  30. definitely overpaid for my carpet.
  31.         -- Woody Allen, "Without Feathers"
  32. -- 
  33. Matthias Urlichs  --  urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de   /(o\
  34. Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany  --  +49-721-9612521     \o)/
  35.