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
Unknown Object (File)
Thu, Oct 1, 4:22 PM
Unknown Object (File)
Thu, Sep 24, 12:52 AM
Unknown Object (File)
Fri, Sep 18, 11:00 AM
Unknown Object (File)
Thu, Sep 10, 6:40 PM
Unknown Object (File)
Thu, Sep 10, 6:28 PM
Unknown Object (File)
Tue, Sep 8, 8:47 AM
Unknown Object (File)
Thu, Sep 3, 8:44 AM
Unknown Object (File)
Sep 2 2026, 5:35 PM
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