[PATCH 2/2] rust_binder: use current_euid() for transaction sender identity

From: Jann Horn

Date: Fri Feb 13 2026 - 16:38:03 EST


Binder currently uses from.process.task.euid() as the transaction sender
EUID, where from.process.task is the main thread of the process that opened
/dev/binder. That's not clean; use the subjective EUID of the current task
instead.

Signed-off-by: Jann Horn <jannh@xxxxxxxxxx>
---
drivers/android/binder/transaction.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/android/binder/transaction.rs b/drivers/android/binder/transaction.rs
index cd8d8202e52d..3deaa745fe2f 100644
--- a/drivers/android/binder/transaction.rs
+++ b/drivers/android/binder/transaction.rs
@@ -107,7 +107,7 @@ pub(crate) fn new(
debug_id,
target_node: Some(target_node),
from_parent,
- sender_euid: from.process.task.euid(),
+ sender_euid: Kuid::current_euid(),
from: from.clone(),
to,
code: trd.code,
@@ -147,7 +147,7 @@ pub(crate) fn new_reply(
debug_id,
target_node: None,
from_parent: None,
- sender_euid: from.process.task.euid(),
+ sender_euid: Kuid::current_euid(),
from: from.clone(),
to,
code: trd.code,

--
2.53.0.273.g2a3d683680-goog