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