Bug 194425

Summary: mountd(8): feature enhancement: restrict exports to authorized hosts
Product: Base System Reporter: Leon Dang <ldang>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Description Flags
new option to restrict exports in mountd none

Description Leon Dang 2014-10-17 19:16:06 UTC
Created attachment 148396 [details]
new option to restrict exports in mountd

Currently mountd will return all entries for exports and dump requests. In some cases it is desirable for these to be restricted to only authorized hosts or completely hidden.

This feature is available in commercial products, such as EMC (https://community.emc.com/docs/DOC-7003) and HP-UX.

The attached patch has three options to restrict exports results, using a new "-x" switch:
* visible = default, all visible
* host = only return results applicable to the host
* hide = fully hidden