FROMGIT: binder: create node flag to request sender's security context
authorTodd Kjos <tkjos@android.com>
Mon, 14 Jan 2019 17:10:21 +0000 (09:10 -0800)
committerDanny Wood <danwood76@gmail.com>
Fri, 8 Nov 2019 12:03:13 +0000 (12:03 +0000)
commit65f76e08a9d1bc5a5fca08dad23c55fd1bf03afa
tree5557785a4e643d12b9bc31dc36f81f8638e2ce9b
parent03c0215f2e668ac802ffc440e5ac6a8f53080ae4
FROMGIT: binder: create node flag to request sender's security context

To allow servers to verify client identity, allow a node
flag to be set that causes the sender's security context
to be delivered with the transaction. The BR_TRANSACTION
command is extended in BR_TRANSACTION_SEC_CTX to
contain a pointer to the security context string.

Signed-off-by: Todd Kjos <tkjos@google.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ec74136ded792deed80780a2f8baf3521eeb72f9
 https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
 master)
Change-Id: I44496546e2d0dc0022f818a45cd52feb1c1a92cb
Signed-off-by: Todd Kjos <tkjos@google.com>
drivers/android/binder.c
include/uapi/linux/android/binder.h