Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2014 19:49:17 GMT
From:      Tommy Scheunemann <net@arrishq.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/186986: nullfs mount options broken
Message-ID:  <201402231949.s1NJnHoR019512@cgiserv.freebsd.org>
Resent-Message-ID: <201402231950.s1NJo0mw009140@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186986
>Category:       kern
>Synopsis:       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:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402231949.s1NJnHoR019512>