summaryrefslogtreecommitdiff
path: root/libs/binder/Debug.cpp
diff options
context:
space:
mode:
author Frederick Mayle <fmayle@google.com> 2022-06-30 02:07:36 +0000
committer Frederick Mayle <fmayle@google.com> 2022-06-30 18:35:50 +0000
commitffe9ac2135a437a799fdf5f85176f9e4be3464c9 (patch)
tree181a2bb3431ebe2ea74cbdde3ae929441845af87 /libs/binder/Debug.cpp
parent7698ff2c60c5d4df6b5a777ab1a22e5cac2caf67 (diff)
libbinder: Stricter protocol and code for receiving FDs
This is a slight change the to wire protocol. Now out-of-band FDs must be sent along with the command header bytes. The code changes exploit that by only using the more complex `recvmsg` call when reading the command header. Additionally, we explicitly pass around the list of FDs so that there is no risk of accumulating them. The same (somewhat ugly) vector type is used everywhere now so that there is only one allocation to capture the FDs and pass them to the `Parcel` object. Test: binderRpcTest Bug: 185909244 Change-Id: I1f55995ca82338ab9716fb2246c954ac8b16cfe5
Diffstat (limited to 'libs/binder/Debug.cpp')
0 files changed, 0 insertions, 0 deletions