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)
Sun, Oct 12, 2:33 AM
Unknown Object (File)
Sun, Oct 12, 1:15 AM
Unknown Object (File)
Sun, Oct 12, 1:14 AM
Unknown Object (File)
Sun, Oct 12, 1:14 AM
Unknown Object (File)
Sat, Oct 11, 3:44 PM
Unknown Object (File)
Thu, Oct 9, 9:30 PM
Unknown Object (File)
Wed, Oct 8, 9:11 PM
Unknown Object (File)
Fri, Oct 3, 3:39 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