kern/186986: nullfs mount options broken

Tommy Scheunemann net at arrishq.net
Sun Feb 23 19:50:01 UTC 2014


>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 at 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:


More information about the freebsd-bugs mailing list