Loading libs/binder/ndk/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ cc_library { ], cflags: [ "-DBINDER_WITH_KERNEL_IPC", "-Wall", "-Wextra", "-Werror", Loading libs/binder/ndk/ibinder.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ #include <private/android_filesystem_config.h> #endif #include "../BuildFlags.h" #include "ibinder_internal.h" #include "parcel_internal.h" #include "status_internal.h" Loading Loading @@ -211,6 +212,12 @@ status_t ABBinder::onTransact(transaction_code_t code, const Parcel& data, Parce binder_status_t status = getClass()->onTransact(this, code, &in, &out); return PruneStatusT(status); } else if (code == SHELL_COMMAND_TRANSACTION && getClass()->handleShellCommand != nullptr) { if constexpr (!android::kEnableKernelIpc) { // Non-IPC builds do not have getCallingUid(), // so we have no way of authenticating the caller return STATUS_PERMISSION_DENIED; } int in = data.readFileDescriptor(); int out = data.readFileDescriptor(); int err = data.readFileDescriptor(); Loading Loading
libs/binder/ndk/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ cc_library { ], cflags: [ "-DBINDER_WITH_KERNEL_IPC", "-Wall", "-Wextra", "-Werror", Loading
libs/binder/ndk/ibinder.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ #include <private/android_filesystem_config.h> #endif #include "../BuildFlags.h" #include "ibinder_internal.h" #include "parcel_internal.h" #include "status_internal.h" Loading Loading @@ -211,6 +212,12 @@ status_t ABBinder::onTransact(transaction_code_t code, const Parcel& data, Parce binder_status_t status = getClass()->onTransact(this, code, &in, &out); return PruneStatusT(status); } else if (code == SHELL_COMMAND_TRANSACTION && getClass()->handleShellCommand != nullptr) { if constexpr (!android::kEnableKernelIpc) { // Non-IPC builds do not have getCallingUid(), // so we have no way of authenticating the caller return STATUS_PERMISSION_DENIED; } int in = data.readFileDescriptor(); int out = data.readFileDescriptor(); int err = data.readFileDescriptor(); Loading