1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM selinux 4 5 #define TRACE_INCLUDE_PATH trace/hooks 6 #if !defined(_TRACE_HOOK_SELINUX_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_HOOK_SELINUX_H 8 #include <linux/tracepoint.h> 9 #include <trace/hooks/vendor_hooks.h> 10 /* 11 * Following tracepoints are not exported in tracefs and provide a 12 * mechanism for vendor modules to hook and extend functionality 13 */ 14 struct selinux_state; 15 DECLARE_HOOK(android_vh_selinux_is_initialized, 16 TP_PROTO(const struct selinux_state *state), 17 TP_ARGS(state)); 18 19 #endif /* _TRACE_HOOK_SELINUX_H */ 20 /* This part must be outside protection */ 21 #include <trace/define_trace.h> 22