
struct selinux_state is defined in security/selinux/include/security.h, however libabigail is not finding its definition based on the instantiation of the hooks, so force it to be defined by defining a dummy exported symbol. Since blk_mq_alloc_data is defined in a subsystem-private header, create a new vendor_hooks.c file in security/selinux to define the dummy symbol. Bug: 233047575 Signed-off-by: Todd Kjos <tkjos@google.com> Change-Id: Ia505c76db2eed339b3815073f847b500535cc954
23 lines
465 B
C
23 lines
465 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/* vendor_hook.c
|
|
*
|
|
* Copyright 2022 Google LLC
|
|
*/
|
|
|
|
#ifndef __GENKSYMS__
|
|
#include "security.h"
|
|
#endif
|
|
|
|
#define CREATE_TRACE_POINTS
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
#include <linux/tracepoint.h>
|
|
#include <trace/hooks/selinux.h>
|
|
|
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_selinux_is_initialized);
|
|
|
|
/*
|
|
* For type visibility
|
|
*/
|
|
struct selinux_state *GKI_struct_selinux_state;
|
|
EXPORT_SYMBOL_GPL(GKI_struct_selinux_state);
|