From nobody@FreeBSD.org  Fri Aug 31 19:01:09 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 45E4716A41B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 31 Aug 2007 19:01:09 +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 27F3013C4B5
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 31 Aug 2007 19:01:09 +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 l7VJ18vS004662
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 31 Aug 2007 19:01:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l7VJ18O2004661;
	Fri, 31 Aug 2007 19:01:08 GMT
	(envelope-from nobody)
Message-Id: <200708311901.l7VJ18O2004661@www.freebsd.org>
Date: Fri, 31 Aug 2007 19:01:08 GMT
From: Craig Rodrigues <rodrigc@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nodev mount option should be removed from documentation
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         115981
>Category:       docs
>Synopsis:       [patch] nodev mount option should be removed from documentation
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    keramida
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 31 19:10:02 GMT 2007
>Closed-Date:    Mon Sep 03 16:40:23 GMT 2007
>Last-Modified:  Mon Sep  3 16:50:08 GMT 2007
>Originator:     Craig Rodrigues
>Release:        FreeBSD CURRENT
>Organization:
>Environment:
>Description:
The "nodev" and "dev" mount options have been no-ops that
have been silently ignored since FreeBSD 5, due to the introduction
of devfs.

In FreeBSD 7, if a user has these options in /etc/fstab,
or does "mount -o nodev", it will result in a mount error,
and that particular mount operation should fail.
>How-To-Repeat:

>Fix:
Remove all references to "nodev" mount option in documentation.

Patch attached with submission follows:

Index: articles/hubs/article.sgml
===================================================================
RCS file: /home/ncvs/doc/en_US.ISO8859-1/articles/hubs/article.sgml,v
retrieving revision 1.64
diff -u -r1.64 article.sgml
--- articles/hubs/article.sgml	30 Jun 2007 09:42:35 -0000	1.64
+++ articles/hubs/article.sgml	31 Aug 2007 18:57:09 -0000
@@ -379,7 +379,7 @@
           Here is an excerpt from <filename>/etc/fstab</filename>,
           how to set up such a MFS:
           <programlisting>
-/dev/da0s1b /anoncvstmp mfs rw,-s=786432,-b=4096,-f=512,-i=560,-c=3,-m=0,nosuid,nodev 0 0
+/dev/da0s1b /anoncvstmp mfs rw,-s=786432,-b=4096,-f=512,-i=560,-c=3,-m=0,nosuid 0 0
           </programlisting>
           This is (of course) tuned a lot, and was suggested by &a.jdp;.
         </para>
Index: books/handbook/basics/chapter.sgml
===================================================================
RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/handbook/basics/chapter.sgml,v
retrieving revision 1.148
diff -u -r1.148 chapter.sgml
--- books/handbook/basics/chapter.sgml	6 Jul 2007 07:29:55 -0000	1.148
+++ books/handbook/basics/chapter.sgml	31 Aug 2007 18:57:52 -0000
@@ -1630,15 +1630,6 @@
         
       <variablelist>
 	<varlistentry>
-	  <term>nodev</term>
-            
-	  <listitem>
-	    <para>Do not interpret special devices on the
-	      file system.  This is a useful security option.</para>
-	  </listitem>
-	</varlistentry>
-          
-	<varlistentry>
 	  <term>noexec</term>
             
 	  <listitem>
Index: books/handbook/security/chapter.sgml
===================================================================
RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/handbook/security/chapter.sgml,v
retrieving revision 1.313
diff -u -r1.313 chapter.sgml
--- books/handbook/security/chapter.sgml	5 Jul 2007 11:00:48 -0000	1.313
+++ books/handbook/security/chapter.sgml	31 Aug 2007 18:59:07 -0000
@@ -712,9 +712,8 @@
 
       <para>If you have a huge amount of user disk space, it may take too
 	long to run through every file on those partitions.  In this case,
-	setting mount flags to disallow suid binaries and devices on those
-	partitions is a good idea.  The <literal>nodev</literal> and
-	<literal>nosuid</literal> options (see &man.mount.8;) are what you
+	setting mount flags to disallow suid binaries is a good idea.
+	The <literal>nosuid</literal> option (see &man.mount.8;) is what you
 	want to look into.  You should probably scan them anyway, at least
 	once a week, since the object of this layer is to detect a break-in
 	attempt, whether or not the attempt succeeds.</para>


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->keramida 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Mon Sep 3 02:03:46 UTC 2007 
Responsible-Changed-Why:  
I'll take care of this.  Thanks for the PR :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115981 
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Mon Sep 3 16:40:07 UTC 2007 
State-Changed-Why:  
Patch committed, thanks :) 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/115981: commit references a PR
Date: Mon,  3 Sep 2007 16:39:59 +0000 (UTC)

 keramida    2007-09-03 16:39:51 UTC
 
   FreeBSD doc repository
 
   Modified files:
     en_US.ISO8859-1/articles/hubs article.sgml 
     en_US.ISO8859-1/books/handbook/basics chapter.sgml 
     en_US.ISO8859-1/books/handbook/security chapter.sgml 
   Log:
   Remove references to the 'nodev' option.
   
   PR:             docs/115981
   Submitted by:   rodrigc
   
   Revision  Changes    Path
   1.65      +1 -1      doc/en_US.ISO8859-1/articles/hubs/article.sgml
   1.149     +0 -9      doc/en_US.ISO8859-1/books/handbook/basics/chapter.sgml
   1.314     +2 -3      doc/en_US.ISO8859-1/books/handbook/security/chapter.sgml
 _______________________________________________
 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"
 
>Unformatted:
