prevent sharenfs parameter from breaking NFS exports
Description
Problem/Justification
None
Impact
None
relates to
Activity
Show:
Bug Clerk March 23, 2022 at 8:02 PM
22.02.1 PR: https://github.com/truenas/middleware/pull/8623
Bug Clerk March 21, 2022 at 9:28 PM
Complete
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Andrew Walker
Andrew WalkerReporter
Andrew Walker
Andrew WalkerTime remaining
0m
Fix versions
Affects versions
Priority
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Created March 20, 2022 at 4:33 AM
Updated July 6, 2022 at 9:02 PM
Resolved March 28, 2022 at 2:14 PM
knfsd / exportfs will attempt to load any exports file added
to /etc/exports.d. This can lead to filesystems being
unexpectedly exported and a broken NFS configuration.
In this PR, we add an additional check when generating
exports where we remove any unexpected file from
/etc/exports.d and then make the directory immutable.
If for some reason, a file cannot be removed, then we
intentionally generate an invalid exports config with
a comment stating that the user needs to clean up whatever
he or she did there.