home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4563 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  903 b 

  1. Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!wupost!gumby!yale!yale.edu!spool.mu.edu!sgiblab!munnari.oz.au!manuel.anu.edu.au!coombs!mark
  2. From: mark@coombs.anu.edu.au (Mark)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Detecting if running under chroot
  5. Date: 7 Nov 92 07:32:18 GMT
  6. Organization: Australian National University
  7. Lines: 11
  8. Message-ID: <mark.721121538@coombs>
  9. References: <1992Nov3.183208.20956@newsgate.sps.mot.com>
  10. NNTP-Posting-Host: 150.203.76.2
  11. Organisation: Wassat?!
  12.  
  13.  
  14. I was reading some of the security texts on research.att.com and it mentioned
  15. that it was possible to detect if one was running under a chroot call.
  16.  
  17. If the file system is duplicated etc how would you check? Make a massive file
  18. on the (apparent) root disk (/tmp for instance) and do a 'df' to make sure
  19. it's the root disk?
  20.  
  21. Or is there some call that returns your *real* directory.
  22.  
  23. Mark
  24.