summaryrefslogtreecommitdiff
path: root/libs/binder/Utils.cpp
AgeCommit message (Collapse)Author
2023-11-13Migrate off of streaming logging Tomasz Wasilczyk
Bug: 302723053 Test: mma Change-Id: Idbd42915fb515021b3de5062fa1d1b55d5899583
2023-10-12Copy HexString to libbinder Tomasz Wasilczyk
Bug: 302723053 Test: mma Change-Id: I5c7a71a91b7dc95bfa0cd653eabe554bdd3f7812
2022-07-08libbinder: separate OS-specific code from Utils.cpp Andrei Homescu
Separate the OS-specific functions setNonBlocking and getRandomBytes from Utils.cpp into a separate OS-specific OS.cpp file that other operating systems can override at build time. Bug: 224644083 Test: build Trusty Change-Id: I2703fb81d4370b5f6264556ae57fdddb0573971a
2022-05-17libbinder: move session ID RNG code to Utils.cpp Andrei Homescu
This moves the code that reads from /dev/urandom from RpcServer.cpp into Utils.cpp so other operating systems can provide their own implementations by replacing Utils.cpp. Test: atest binderRpcTest Bug: 224644083 Change-Id: I2923b25537c07060b830b0d8378df8c969bbd02f
2021-08-06binder: RPC uses non-blocking sockets. Yifan Hong
With TLS, even though poll() may have returned for an FD, there may not be a complete packet available, so I/O operations within libssl may block and not interruptible by the shutdown trigger. Hence, always use non-blocking sockets. Test: binderRpcTest Bug: 195683291 Change-Id: I372e8c3bf010c672b1c4b9f7cb5b789ca20c9480
2020-11-09libbinder: support TF_CLEAR_BUF Steven Moreland
This flag instructs the kernel to clear transactions from send/reply buffers for certain transactions which may contain sensitive data, as a security precaution. Bug: 171501998 Test: binderLibTest (only checks there is no error) Change-Id: I69d732e5cc2b15472dc52d47c66716bc1b3be6ae