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.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -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 | ||
| 253 | struct binder_transaction_data { | 254 | struct binder_transaction_data { |