Introduce a generic netlink multicast event to report binder transaction failures to userspace. This allows subscribers to monitor these events and take appropriate actions, such as stopping a misbehaving application that is spamming a service with huge amount of transactions. The multicast event contains full details of the failed transactions, including the sender/target PIDs, payload size and specific error code. This interface is defined using a YAML spec, from which the UAPI and kernel headers and source are auto-generated. Signed-off-by: Li Li <dualli@google.com> Signed-off-by: Carlos Llamas <cmllamas@google.com> Link: https://lore.kernel.org/r/20250727182932.2499194-4-cmllamas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Bug: 372832477 (cherry picked from commit 63740349eba78f242bcbf60d5244d7f2b2600853 git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-next) [cmllamas: fix missing t->is_reply, fix ABI header include issue] Change-Id: I7013f9bba450f7ab3331dd850314a7b62af58818 Signed-off-by: Carlos Llamas <cmllamas@google.com>
18 lines
753 B
Makefile
18 lines
753 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
ccflags-y += -I$(src) # needed for trace events
|
|
|
|
obj-$(CONFIG_ANDROID_BINDERFS) += binderfs.o
|
|
obj-$(CONFIG_ANDROID_BINDER_IPC) += binder.o binder_alloc.o binder_netlink.o
|
|
obj-$(CONFIG_ANDROID_BINDER_IPC_SELFTEST) += binder_alloc_selftest.o
|
|
obj-$(CONFIG_ANDROID_VENDOR_HOOKS) += vendor_hooks.o
|
|
obj-$(CONFIG_ANDROID_DEBUG_KINFO) += debug_kinfo.o
|
|
|
|
obj-$(CONFIG_ANDROID_BINDER_IPC_RUST) += rust_binder.o
|
|
obj-$(CONFIG_ANDROID_BINDER_IPC_RUST_DUMMY) += rust_binder.o
|
|
ifdef CONFIG_ANDROID_BINDER_IPC_RUST
|
|
rust_binder-objs := binder/rust_binder.o binder/rust_binderfs.o binder/rust_binder_events.o
|
|
rust_binder-objs += binder/rust_binder_hooks.o binder/page_range_helper.o
|
|
else
|
|
rust_binder-objs := binder/dummy.o
|
|
endif
|