HomeFreeBSD

sys/rpc: UNIX auth: Support XDR_FREE

Description

sys/rpc: UNIX auth: Support XDR_FREE

xdr_authunix_parms() does not allocate any auxiliary memory, so we can
simply support XDR_FREE by just returning TRUE.

Although there are currently no callers passing XDR_FREE, this makes us
immune to such a change in a way that doesn't cost more but is more
constructive than a mere KASSERT().

Suggested by: rmacklem
MFC after: 2 days
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 4ae70c3ea498e06676040ee99254d261e29ae82e)

Details

Provenance
olceAuthored on Oct 13 2025, 3:13 PM
Parents
rG45e671c9cd3b: sys/rpc: UNIX auth: Fix OOB reads on too short message
Branches
Unknown
Tags
Unknown