From nobody@FreeBSD.org  Fri Jul  4 08:41:48 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DF65E1065679
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Jul 2008 08:41:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id CBEB08FC25
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Jul 2008 08:41:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m648fmTT053846
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 4 Jul 2008 08:41:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m648fmoU053779;
	Fri, 4 Jul 2008 08:41:48 GMT
	(envelope-from nobody)
Message-Id: <200807040841.m648fmoU053779@www.freebsd.org>
Date: Fri, 4 Jul 2008 08:41:48 GMT
From: Mateusz Guzik <mjguzik@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] jail(2) does not mention about possible error EAGAIN
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         125253
>Category:       docs
>Synopsis:       [patch] jail(2) does not mention about possible error EAGAIN
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 04 08:50:03 UTC 2008
>Closed-Date:    Sat Jun 11 01:49:08 UTC 2011
>Last-Modified:  Sat Jun 11 01:50:12 UTC 2011
>Originator:     Mateusz Guzik
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD eternal 8.0-CURRENT FreeBSD 8.0-CURRENT #11: Wed Jul  2 15:50:37 CEST 2008     f@eternal:/usr/obj/usr/src/sys/ETERNAL  i386

>Description:
If all valid jids are in use, the kernel returns EAGAIN (see line 177 in sys/kern/kern_jail.c), but man page jail(2) does not mention it.
>How-To-Repeat:

>Fix:
Patch is attached.

Patch attached with submission follows:

--- lib/libc/sys/jail.2.orig	2005-02-09 19:03:14.000000000 +0100
+++ lib/libc/sys/jail.2	2008-07-04 10:33:35.000000000 +0200
@@ -110,10 +110,14 @@
 will fail if:
 .Bl -tag -width Er
 .It Bq Er EINVAL
 The version number of the argument is not correct.
 .El
+.Bl -tag -width Er
+.It Bq Er EAGAIN
+No free JID could be found.
+.El
 .Pp
 Further
 .Fn jail
 calls
 .Xr chroot 2


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: trhodes 
State-Changed-When: Sun Aug 3 21:57:19 UTC 2008 
State-Changed-Why:  
Slightly different version of the patch committed, thanks! 


Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Sun Aug 3 21:57:19 UTC 2008 
Responsible-Changed-Why:  
Over to me, MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125253 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/125253: commit references a PR
Date: Sun,  3 Aug 2008 21:57:15 +0000 (UTC)

 trhodes     2008-08-03 21:56:58 UTC
 
   FreeBSD src repository
 
   Modified files:
     lib/libc/sys         jail.2 
   Log:
   SVN rev 181265 on 2008-08-03 21:56:58Z by trhodes
   
   Add EAGAIN to the ERRORS list, as found in kern_jail.c.
   
   PR:             125253
   Submitted by:   Mateusz Guzik <mjguzik@gmail.com> (original version)
   
   Revision  Changes    Path
   1.29      +3 -1      src/lib/libc/sys/jail.2
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: gjb 
State-Changed-When: Sat Jun 11 01:48:53 UTC 2011 
State-Changed-Why:  
MFCd to stable/7. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=125253 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/125253: commit references a PR
Date: Sat, 11 Jun 2011 01:45:12 +0000 (UTC)

 Author: gjb (doc committer)
 Date: Sat Jun 11 01:44:49 2011
 New Revision: 222969
 URL: http://svn.freebsd.org/changeset/base/222969
 
 Log:
   MFC 181265 [1]:
   
   Document EAGAIN in ERRORS according to kern_jail.c.
   
   PR:		125253
   Original commit by:	trhodes [1]
 
 Modified:
   stable/7/lib/libc/sys/jail.2
 Directory Properties:
   stable/7/lib/libc/   (props changed)
   stable/7/lib/libc/stdtime/   (props changed)
 
 Modified: stable/7/lib/libc/sys/jail.2
 ==============================================================================
 --- stable/7/lib/libc/sys/jail.2	Sat Jun 11 01:21:54 2011	(r222968)
 +++ stable/7/lib/libc/sys/jail.2	Sat Jun 11 01:44:49 2011	(r222969)
 @@ -138,6 +138,8 @@ will fail if:
  .Bl -tag -width Er
  .It Bq Er EINVAL
  The version number of the argument is not correct.
 +.It Bq Er EAGAIN
 +No free JID could be found.
  .El
  .Pp
  Further
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
