Executing configuration files in automountd(8) is a tradition inherited
from autofs of other systems, but the functionality unnecessarily
increases a system's exposure by doing so as root in all cases.
Drop privileges by default to the newly-created _automount user for all
of:
- /etc/autofs/include*
- /etc/autofs/special*
- executable maps
An -S option is added to revert the new behavior, because while the
first two don't seem to require root in off-the-shelf configurations,
maps are a complete wildcard and harder to judge off-hand.
The primary goal is to limit the blast radius of possibly unexpected
side effects, as a lot of these things just want to talk over the
network and do text processing on the result.
Relnotes: yes ("Behavior change, automountd_flags += -S reverts")