summaryrefslogtreecommitdiff
path: root/libs/binder/Utils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Migrate off of streaming loggingTomasz Wasilczyk2023-11-131-2/+1
| | | | | | Bug: 302723053 Test: mma Change-Id: Idbd42915fb515021b3de5062fa1d1b55d5899583
* Copy HexString to libbinderTomasz Wasilczyk2023-10-121-0/+19
| | | | | | Bug: 302723053 Test: mma Change-Id: I5c7a71a91b7dc95bfa0cd653eabe554bdd3f7812
* libbinder: separate OS-specific code from Utils.cppAndrei Homescu2022-07-081-28/+0
| | | | | | | | | | | 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
* libbinder: move session ID RNG code to Utils.cppAndrei Homescu2022-05-171-0/+14
| | | | | | | | | | 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
* binder: RPC uses non-blocking sockets.Yifan Hong2021-08-061-1/+15
| | | | | | | | | | | | | 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
* libbinder: support TF_CLEAR_BUFSteven Moreland2020-11-091-0/+27
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