History

binder: add flag to clear buffer on txn complete

Add a per-transaction flag to indicate that the buffer must be cleared when the transaction is complete to prevent copies of sensitive data from being preserved in memory.

Todd Kjos committed 5 years ago

Commit 0f966cb1 parent d1b928e4 files · +53 −1Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/android/binder.h+1−0
@@ -248,6 +248,7 @@ enum transaction_flags { · 247 unmodified lines
248 TF_ROOT_OBJECT = 0x04, /* contents are the component's root object */248 TF_ROOT_OBJECT = 0x04, /* contents are the component's root object */
249 TF_STATUS_CODE = 0x08, /* contents are a 32-bit status code */249 TF_STATUS_CODE = 0x08, /* contents are a 32-bit status code */
250 TF_ACCEPT_FDS = 0x10, /* allow replies with file descriptors */250 TF_ACCEPT_FDS = 0x10, /* allow replies with file descriptors */
251 TF_CLEAR_BUF = 0x20, /* clear buffer on txn complete */
251};252};
252 253
253struct binder_transaction_data {254struct binder_transaction_data {