android_kernel_motorola_sm6375/drivers/android
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Todd Kjos 1fe8a2bb64 BACKPORT: binder: use euid from cred instead of using task
Save the 'struct cred' associated with a binder process
at initial open to avoid potential race conditions
when converting to an euid.

Set a transaction's sender_euid from the 'struct cred'
saved at binder_open() instead of looking up the euid
from the binder proc's 'struct task'. This ensures
the euid is associated with the security context that
of the task that opened binder.

Cc: [email protected] # 4.4+
Fixes: 457b9a6f09 ("Staging: android: add binder driver")
Signed-off-by: Todd Kjos <[email protected]>
Suggested-by: Stephen Smalley <[email protected]>
Suggested-by: Jann Horn <[email protected]>
Acked-by: Casey Schaufler <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Bug: 200688826
(cherry picked from commit 29bc22ac5e5bc63275e850f0c8fc549e3d0e306b)
[ refactored to avoid changing KMI: struct binder_proc ]
Change-Id: Icaf996a7f5543b7d6943dff3cbe89bfc3614044c
2021-11-19 16:25:34 -08:00
..
binder.c BACKPORT: binder: use euid from cred instead of using task 2021-11-19 16:25:34 -08:00
binder_alloc.c This is the 5.4.86 stable release 2020-12-30 12:31:14 +01:00
binder_alloc.h This is the 5.4.86 stable release 2020-12-30 12:31:14 +01:00
binder_alloc_selftest.c FROMGIT: binder: print warnings when detecting oneway spamming. 2020-09-10 15:52:35 +00:00
binder_internal.h BACKPORT: binder: use euid from cred instead of using task 2021-11-19 16:25:34 -08:00
binder_trace.h
binderfs.c binderfs: use refcount for binder control devices too 2020-03-25 08:25:50 +01:00
Kconfig ANDROID: add support for vendor hooks 2020-07-09 15:26:29 +02:00
Makefile ANDROID: add support for vendor hooks 2020-07-09 15:26:29 +02:00
vendor_hooks.c ANDROID: Add vendor hooks when syscall prctl finished 2021-03-09 21:57:07 +00:00