]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
binder: use current_euid() for transaction sender identity
authorJann Horn <jannh@google.com>
Fri, 13 Feb 2026 21:37:30 +0000 (22:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Feb 2026 05:35:18 +0000 (21:35 -0800)
commit65b6721522892a4994472fbac41386c63c769511
tree32055a41e03ddabb9c0910fa9d07d725ad86a207
parentf3e0b76fc29c4e1ee542f5173a4a631803e69436
binder: use current_euid() for transaction sender identity

Binder currently uses task_euid(proc->tsk) as the transaction sender EUID,
where proc->tsk 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@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260213-binder-uid-v1-1-7b795ae05523@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c