Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 19:55:09 +0200
From:      Denis V <dv@zeos.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Programming problem: is it possible to known that execution environment is chrooted
Message-ID:  <3C72917D.9FFCD116@zeos.net>

next in thread | raw e-mail | index | archive | help
I'am programming web tool that need to be automatically deployed
on web server even by operator (co-admin).
Target System for web server will be 4.3-STABLE FreeBSD or higher.
And it acts in two diferent ways depends on chrooted environment this or not.
Of course i can simly ask about it during deploymnet, but in some cases
peolpe who do this can't certain knewn is environment for web server chrooted or not.

So is it possible (with help of system function or programms) to determine
wich kind of environment is it: chrooted or not. Programm of course will executes
under not root uid.

I don't think what it would be a subject for security violation,
cause even if some crack programm known about chroot, what can it do about it :-)

Thanks in advance.

-- 

- Друг! У вас какая система? Разрешите взглянуть...
- Система обычная. Нажал на кнопку - и дома.
http://pixelfab.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C72917D.9FFCD116>