From owner-freebsd-questions Tue Feb 19 9:53: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rock.gnt.kiev.ua (rock.zeos.net [194.153.128.129]) by hub.freebsd.org (Postfix) with ESMTP id 0C61037B416 for ; Tue, 19 Feb 2002 09:52:56 -0800 (PST) Received: from zeos.net (biboca.zeos.net [194.153.128.113]) by rock.gnt.kiev.ua (8.12.1/8.12.1) with ESMTP id g1JHqpcF010740 for ; Tue, 19 Feb 2002 19:52:51 +0200 (EET) Message-ID: <3C72917D.9FFCD116@zeos.net> Date: Tue, 19 Feb 2002 19:55:09 +0200 From: Denis V X-Mailer: Mozilla 4.07 [en] (WinNT; I) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Programming problem: is it possible to known that execution environment is chrooted Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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