HomeFreeBSD

nfsd: Fix handling of credentials with cr_ngroups == 0

Description

nfsd: Fix handling of credentials with cr_ngroups == 0

There has been a documented case in the exports(5) man
page forever, which specifies that the -maproot or -mapall
may have a single user entry, followed by a ':'.
This case is defined as specifying no groups (aka cr_ngroups == 0).

This patch fixes the NFS server so that it handles this case correctly.

After MFC'ng this patch to stable/13 and stable/14, I propose that
this unusual case be deprecated and no longer allowed in FreeBSD15.
At that point, this patch can be reverted.

(cherry picked from commit caa309c8811d62a24cd07e3a1f6e9095eaf10c90)

Details

Provenance
rmacklemAuthored on Mon, Oct 21, 10:48 PM
Parents
rG9db8fd4c2adc: freebsd-update(8): wrap to 80 columns
Branches
Unknown
Tags
Unknown