From owner-cvs-all@FreeBSD.ORG Thu Feb 19 06:29:15 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45F8716A4CE; Thu, 19 Feb 2004 06:29:15 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29D3143D2F; Thu, 19 Feb 2004 06:29:15 -0800 (PST) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i1JETFGe073009; Thu, 19 Feb 2004 06:29:15 -0800 (PST) (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i1JETEo3073008; Thu, 19 Feb 2004 06:29:14 -0800 (PST) (envelope-from pjd) Message-Id: <200402191429.i1JETEo3073008@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Thu, 19 Feb 2004 06:29:14 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_jail.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 14:29:15 -0000 pjd 2004/02/19 06:29:14 PST FreeBSD src repository Modified files: sys/kern kern_jail.c Log: Added sysctl security.jail.jailed. It returns 1 is process is inside of jail and 0 if it is not. Information if we are in jail or not is not a secret, there is plenty of ways to discover it. Many people are using own hack to check this and this will be a legal way from now on. It will be great if our starting scripts will take advantage of this sysctl to allow clean "boot" inside jail. Approved by: rwatson, scottl (mentor) Revision Changes Path 1.39 +13 -0 src/sys/kern/kern_jail.c