From nobody@FreeBSD.org  Wed Sep  5 11:16:59 2007
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 6100616A417
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Sep 2007 11:16:59 +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 34F5813C4A5
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Sep 2007 11:16:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l85BGwDC086381
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 5 Sep 2007 11:16:58 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l85BGwIG086380;
	Wed, 5 Sep 2007 11:16:58 GMT
	(envelope-from nobody)
Message-Id: <200709051116.l85BGwIG086380@www.freebsd.org>
Date: Wed, 5 Sep 2007 11:16:58 GMT
From: Oleg <Oleg.Dolgov@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mktemp (3) re/move note
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         116116
>Category:       docs
>Synopsis:       mktemp (3) re/move note
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 05 11:20:12 GMT 2007
>Closed-Date:    Mon Mar 19 02:41:53 UTC 2012
>Last-Modified:  Mon Mar 19 02:41:53 UTC 2012
>Originator:     Oleg
>Release:        7-CURRENT
>Organization:
Sunbay
>Environment:
>Description:
in BUGS section:

The implementation of these functions calls arc4random(3), which is not
reentrant.  You must provide your own locking around this and other con-
sumers of the arc4random(3) API.

IMHO need to clean this note, because mkstemp and others are thread-safe.
We can move it to arc4random(3) man page.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Thu Feb 23 02:53:37 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116116 
State-Changed-From-To: open->analyzed 
State-Changed-By: eadler 
State-Changed-When: Sat Mar 3 19:36:30 UTC 2012 
State-Changed-Why:  
awaiting approval 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/116116: commit references a PR
Date: Sun,  4 Mar 2012 16:44:18 +0000 (UTC)

 Author: eadler
 Date: Sun Mar  4 16:44:04 2012
 New Revision: 232505
 URL: http://svn.freebsd.org/changeset/base/232505
 
 Log:
   Remove outdated comment of seven years
   
   PR:		docs/116116
   Approved by:	cperciva
   MFC after:	1 week
 
 Modified:
   head/lib/libc/stdio/mktemp.3
 
 Modified: head/lib/libc/stdio/mktemp.3
 ==============================================================================
 --- head/lib/libc/stdio/mktemp.3	Sun Mar  4 16:41:07 2012	(r232504)
 +++ head/lib/libc/stdio/mktemp.3	Sun Mar  4 16:44:04 2012	(r232505)
 @@ -236,10 +236,3 @@ and the return status of the call should
  This will ensure that the program does not continue blindly
  in the event that an attacker has already created the file
  with the intention of manipulating or reading its contents.
 -.Pp
 -The implementation of these functions calls
 -.Xr arc4random 3 ,
 -which is not reentrant.
 -You must provide your own locking around this and other consumers of the
 -.Xr arc4random 3
 -API.
 _______________________________________________
 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"
 
State-Changed-From-To: analyzed->patched 
State-Changed-By: eadler 
State-Changed-When: Sun Mar 4 21:23:06 UTC 2012 
State-Changed-Why:  
committed in r232505 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/116116: commit references a PR
Date: Mon, 19 Mar 2012 01:56:35 +0000 (UTC)

 Author: eadler
 Date: Mon Mar 19 01:56:26 2012
 New Revision: 233155
 URL: http://svn.freebsd.org/changeset/base/233155
 
 Log:
   MFC r232505:
   	Remove outdated comment of seven years
   
   PR:		docs/116116
   Approved by:	cperciva
 
 Modified:
   stable/9/lib/libc/stdio/mktemp.3
 Directory Properties:
   stable/9/lib/libc/   (props changed)
 
 Modified: stable/9/lib/libc/stdio/mktemp.3
 ==============================================================================
 --- stable/9/lib/libc/stdio/mktemp.3	Mon Mar 19 01:52:09 2012	(r233154)
 +++ stable/9/lib/libc/stdio/mktemp.3	Mon Mar 19 01:56:26 2012	(r233155)
 @@ -236,10 +236,3 @@ and the return status of the call should
  This will ensure that the program does not continue blindly
  in the event that an attacker has already created the file
  with the intention of manipulating or reading its contents.
 -.Pp
 -The implementation of these functions calls
 -.Xr arc4random 3 ,
 -which is not reentrant.
 -You must provide your own locking around this and other consumers of the
 -.Xr arc4random 3
 -API.
 _______________________________________________
 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"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/116116: commit references a PR
Date: Mon, 19 Mar 2012 01:57:11 +0000 (UTC)

 Author: eadler
 Date: Mon Mar 19 01:56:52 2012
 New Revision: 233156
 URL: http://svn.freebsd.org/changeset/base/233156
 
 Log:
   MFC r232505:
   	Remove outdated comment of seven years
   
   PR:		docs/116116
   Approved by:	cperciva
 
 Modified:
   stable/8/lib/libc/stdio/mktemp.3
 Directory Properties:
   stable/8/lib/libc/   (props changed)
 
 Modified: stable/8/lib/libc/stdio/mktemp.3
 ==============================================================================
 --- stable/8/lib/libc/stdio/mktemp.3	Mon Mar 19 01:56:26 2012	(r233155)
 +++ stable/8/lib/libc/stdio/mktemp.3	Mon Mar 19 01:56:52 2012	(r233156)
 @@ -236,10 +236,3 @@ and the return status of the call should
  This will ensure that the program does not continue blindly
  in the event that an attacker has already created the file
  with the intention of manipulating or reading its contents.
 -.Pp
 -The implementation of these functions calls
 -.Xr arc4random 3 ,
 -which is not reentrant.
 -You must provide your own locking around this and other consumers of the
 -.Xr arc4random 3
 -API.
 _______________________________________________
 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"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/116116: commit references a PR
Date: Mon, 19 Mar 2012 01:57:24 +0000 (UTC)

 Author: eadler
 Date: Mon Mar 19 01:57:14 2012
 New Revision: 233157
 URL: http://svn.freebsd.org/changeset/base/233157
 
 Log:
   MFC r232505:
   	Remove outdated comment of seven years
   
   PR:		docs/116116
   Approved by:	cperciva
 
 Modified:
   stable/7/lib/libc/stdio/mktemp.3
 Directory Properties:
   stable/7/lib/libc/   (props changed)
 
 Modified: stable/7/lib/libc/stdio/mktemp.3
 ==============================================================================
 --- stable/7/lib/libc/stdio/mktemp.3	Mon Mar 19 01:56:52 2012	(r233156)
 +++ stable/7/lib/libc/stdio/mktemp.3	Mon Mar 19 01:57:14 2012	(r233157)
 @@ -236,10 +236,3 @@ and the return status of the call should
  This will ensure that the program does not continue blindly
  in the event that an attacker has already created the file
  with the intention of manipulating or reading its contents.
 -.Pp
 -The implementation of these functions calls
 -.Xr arc4random 3 ,
 -which is not reentrant.
 -You must provide your own locking around this and other consumers of the
 -.Xr arc4random 3
 -API.
 _______________________________________________
 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"
 
State-Changed-From-To: patched->closed 
State-Changed-By: eadler 
State-Changed-When: Mon Mar 19 02:41:52 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

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