[Bug 176449] zfs(1): ZFS NFS export went wrong with special hostname character

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 5 01:42:38 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=176449

--- Comment #8 from eborisch+FreeBSD at gmail.com ---
(In reply to Martin Birgmeier from comment #7)

The current behavior strips leading dashes from un-recognized options.

Input                  = -foo -ro  mapall test_host test-host
current output         =  foo -ro -mapall test_host test host
w/patch in bug #168158 =  foo -ro -mapall test_host test-host
w/patch in bug #176449 = -foo -ro -mapall test_host test-host

So the other patch is minimal change (only fixes preserving dashes inside host
names) while the patch here also passes unrecognized options with leading
dashes.

Not sure which is preferred in this case; stripping the dash is likely not
optimal from a security point of view, as -foo becomes the hostname foo...
Should it perhaps remove strings that look like options but aren't recognized?
Or pass them as (invalid) arguments into exports?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list