HomeFreeBSD

vfs_exports: Tighten bounds and assert consistency of numsecflavors

Description

vfs_exports: Tighten bounds and assert consistency of numsecflavors

We know the value must be greater than 0 and less than MAXSECFLAVORS.

Reject values outside this range in the initial check in vfs_export and add KASSERTs
in the later consumers.

Also check that we are called with one of either MNT_DELEXPORT or MNT_EXPORTED set.

Reviewed by: rmacklem
Approved by: mav (mentor)
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D24753

Details

Provenance
freqlabsAuthored on
Reviewer
rmacklem
Differential Revision
D24753: vfs_exports: Tighten bounds and assert consistency of numsecflavors
Parents
rS360899: Add le_scan subcommand to hccontrol.
Branches
Unknown
Tags
Unknown