From clsung@going04.iis.sinica.edu.tw  Fri May  5 01:12:23 2006
Return-Path: <clsung@going04.iis.sinica.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7863116A406
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  5 May 2006 01:12:23 +0000 (UTC)
	(envelope-from clsung@going04.iis.sinica.edu.tw)
Received: from going04.iis.sinica.edu.tw (going04.iis.sinica.edu.tw [140.109.19.154])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2B7E943D45
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  5 May 2006 01:12:23 +0000 (GMT)
	(envelope-from clsung@going04.iis.sinica.edu.tw)
Received: by going04.iis.sinica.edu.tw (Postfix, from userid 1002)
	id F386028442; Fri,  5 May 2006 09:12:30 +0800 (CST)
Message-Id: <20060505011230.F386028442@going04.iis.sinica.edu.tw>
Date: Fri,  5 May 2006 09:12:30 +0800 (CST)
From: Cheng-Lung Sung <clsung@FreeBSD.org>
Reply-To: Cheng-Lung Sung <clsung@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: clsung@gmail.com
Subject: [patch] document security.jail.list sysctl in jail(8)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         96807
>Category:       docs
>Synopsis:       [patch] document security.jail.list sysctl in jail(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    matteo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 05 01:20:13 GMT 2006
>Closed-Date:    Fri May 19 16:45:56 GMT 2006
>Last-Modified:  Fri May 19 16:45:56 GMT 2006
>Originator:     Cheng-Lung Sung
>Release:        FreeBSD 6.1-RC i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD going04.iis.sinica.edu.tw 6.1-RC FreeBSD 6.1-RC #8: Tue May 2 13:22:05 CST 2006 root@going04.iis.sinica.edu.tw:/usr/obj/usr/src/sys/GOING04 i386

>Description:
	security.jail.jailed is not documented. 
	Also re-format security.jail.jailed in jail(8)
>How-To-Repeat:
>Fix:

--- jail.8.orig	Fri May  4 10:41:02 2006
+++ jail.8	Fri May  5 09:07:46 2006
@@ -536,6 +536,16 @@
 privileged, and may manipulate system file flags subject to the usual
 constraints on
 .Va kern.securelevel .
+.It Va security.jail.jailed
+The read-only variable can be used to determine if a process is running inside a jail (value
+is one) or not (value is zero).
+.It Va security.jail.list
+This MIB entry is read-only and it returns an array of 
+struct xprison defined in 
+.In sys/jail.h .
+It is recommended to use the
+.Xr jls 8
+utility to see current active list of jails.
 .El
 .Pp
 There are currently two MIB related variables that have per-jail settings.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: matteo 
State-Changed-When: Mon May 8 19:56:49 UTC 2006 
State-Changed-Why:  
I committed a different patch to HEAD. 


Responsible-Changed-From-To: freebsd-doc->matteo 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Mon May 8 19:56:49 UTC 2006 
Responsible-Changed-Why:  
Take ownership since I committed the fix 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96807 
State-Changed-From-To: patched->closed 
State-Changed-By: matteo 
State-Changed-When: Fri May 19 16:44:43 UTC 2006 
State-Changed-Why:  
Maxim MFC'ed the patch 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96807 
>Unformatted:
