Page MenuHomeFreeBSD

mountd.c: Add a new "-a" command line option for -alldris
ClosedPublic

Authored by rmacklem on Dec 19 2024, 12:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 29, 4:06 AM
Unknown Object (File)
Fri, Dec 27, 1:25 AM
Unknown Object (File)
Dec 26 2024, 2:48 PM
Unknown Object (File)
Dec 26 2024, 12:32 PM
Unknown Object (File)
Dec 26 2024, 5:43 AM
Unknown Object (File)
Dec 26 2024, 1:08 AM
Unknown Object (File)
Dec 25 2024, 12:49 AM
Unknown Object (File)
Dec 21 2024, 7:58 PM
Subscribers

Details

Summary

Bugzilla PR#282995 reported that, when a file system was
exported with the "-alldirs" flag, the export succeeded even
if the directory path was not a server file system mount point.

This behaviour for "-alldirs" was only documented in the
Example section of exports(5) and had not been enforced
since FreeBSD2. (A patch applied between FreeBSD1 and
FreeBSD2 broke the check for file system mount point.)

Since the behaviour of allowing the export has existed since
FreeBSD2, the concensus on a mailing list was that it would
be a POLA violation to change it now.
Therefore, this patch adds a new "-a" mountd command line
option to enforce a check for the exported directory being a
server file system mount point.

Updates to the mountd(8) and exports(5) man pages are separate
reviews.

Test Plan

Tested for exports lines that specify "-alldirs" when the
directory path is/not a server file system mount point.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable