Page MenuHomeFreeBSD

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

Authored by kevans on Jul 3 2025, 4:11 PM.
Tags
None
Referenced Files
F170045932: D51152.id159002.diff
Thu, Sep 3, 8:44 AM
Unknown Object (File)
Wed, Sep 2, 5:35 PM
Unknown Object (File)
Wed, Sep 2, 11:51 AM
Unknown Object (File)
Wed, Sep 2, 10:39 AM
Unknown Object (File)
Mon, Aug 31, 1:54 AM
Unknown Object (File)
Thu, Aug 13, 5:46 PM
Unknown Object (File)
Thu, Aug 13, 5:46 PM
Unknown Object (File)
Thu, Aug 13, 12:44 AM
Subscribers

Details

Summary

sdpd's usage ws 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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable