Bug 186986 - mount_nullfs(8): nullfs mount options broken
Summary: mount_nullfs(8): nullfs mount options broken
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-23 19:50 UTC by net
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description net 2014-02-23 19:50:00 UTC
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.
Comment 1 net 2014-02-23 19:54:58 UTC
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-----
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:05 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped