From nobody@FreeBSD.org  Sun Feb 23 19:49:18 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 271D720D
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Feb 2014 19:49:18 +0000 (UTC)
Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 119B61E27
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Feb 2014 19:49:18 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1NJnHYF019513
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Feb 2014 19:49:17 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1NJnHoR019512;
	Sun, 23 Feb 2014 19:49:17 GMT
	(envelope-from nobody)
Message-Id: <201402231949.s1NJnHoR019512@cgiserv.freebsd.org>
Date: Sun, 23 Feb 2014 19:49:17 GMT
From: Tommy Scheunemann <net@arrishq.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nullfs mount options broken
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186986
>Category:       bin
>Synopsis:       mount_nullfs(8): nullfs mount options broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 23 19:50:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Wed Apr 16 02:12:37 UTC 2014
>Originator:     Tommy Scheunemann
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD playbox.arrishq.local 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014 root@snap.freebd.org:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Seems since an update (clean update) but also with a reinstall
mount_nullfs doesn't take options anymore, or better the final mount
doesn't take them.
>How-To-Repeat:
cd /root
mkdir dir_1
mkdir dir_2
mount_nullfs -o ro,noexec,nosuid /root/dir_1 /root/dir_2
cd dir_2
ls -a
. ..
touch testfile
ls -a
. .. testfile
cp /bin/ls ./
./ls
ls

Also doing a:

mount | grep dir_2

shows:

/root/dir_1 /root/dir_2 (nullfs, local)

but the options "read-only, noexec,nosuid" seem to be ignored.

The underlying filesystem is UFS.

Same problem exists on i386 and amd64 - both with a GENERIC kernel.
>Fix:


>Release-Note:
>Audit-Trail:

From: Tommy Scheunemann <net@arrishq.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/186986: nullfs mount options broken
Date: Sun, 23 Feb 2014 20:54:58 +0100

 --Sig_/K/YR3CwiVkCtchtcgf4LCL0
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 Hello :)
 
 small addition to prevent any confusion:
 
 mount -t nullfs -o ...
 
 works as expected.
 
 mount_nullfs -o ...
 
 doesn't. So my guess is that the "mount_nullfs" binary doesn't like
 some options.
 
 Kindest regards
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (GNU/Linux)
 
 iQEcBAEBAgAGBQJTClIVAAoJEPZHWCGodi3EVq0IAKH3msUQuYIksa01OZWLam8t
 yT6Roe6mg66ovAXVzIE3255tMcYnuW95kvpZq24/aPb1pKLzs4q5ikSjnuWHImmH
 t3kMcPhuhXzjtOebpxNHI6feHdCuYtpSLRCjh1I1tFyI5Z1JteQXF2RxjUVNkW8C
 VmZAuVQv7hnl40Xs6DwGZQW0+WLIzyMRc/zXEwkNWPXQiDbn315DOqxRasGIBl4U
 ZYC9GHNqkdbld856MbOHskjYqRe8PXEUg1576X5IDMxQacYbXm+UeMzG+9gK0TQG
 B+gNyjEqaxlqIjoNrsSBJisPJP1fs/DDrqh8uP76iwZ4IIC84YRsjMWH3AxPAg0=
 =H0+v
 -----END PGP SIGNATURE-----
 
 --Sig_/K/YR3CwiVkCtchtcgf4LCL0--
>Unformatted:
