HomeFreeBSD

bluetooth: sdpd: switch to getpeereid() instead of LOCAL_PEERCRED

Description

bluetooth: sdpd: switch to getpeereid() instead of LOCAL_PEERCRED

sdpd's usage was mostly fine, though it debatably should have been
checking the xucred version to avoid mishaps. Switch it to getpeereid()
anyways to avoid embedding xucred layout details in more program.

Reviewed by: emax
Differential Revision: https://reviews.freebsd.org/D51152

Details

Provenance
kevansAuthored on Jul 24 2025, 2:59 PM
Reviewer
emax
Differential Revision
D51152: bluetooth: sdpd: switch to getpeereid() instead of LOCAL_PEERCRED
Parents
rG665e898d581c: rpc.lockd: avoid embedding assumptions about cr_groups[0]
Branches
Unknown
Tags
Unknown