Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

prevent sharenfs parameter from breaking NFS exports

Description

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.

Problem/Justification

None

Impact

None

relates to

Activity

Show:

Bug Clerk March 23, 2022 at 8:02 PM

Bug Clerk March 21, 2022 at 9:28 PM

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Time remaining

0m

Affects versions

Priority

Katalon Platform

Created March 20, 2022 at 4:33 AM
Updated July 6, 2022 at 9:02 PM
Resolved March 28, 2022 at 2:14 PM