From dac039da42a9eb76f5b3841307ce97de71e83a12 Mon Sep 17 00:00:00 2001 From: Djalal Harouni Date: Sat, 26 Aug 2023 22:34:27 +0200 Subject: [PATCH] bpf: add module.h Signed-off-by: Djalal Harouni --- bpf/process/types/module.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bpf/process/types/module.h diff --git a/bpf/process/types/module.h b/bpf/process/types/module.h new file mode 100644 index 00000000000..b455c08fabc --- /dev/null +++ b/bpf/process/types/module.h @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright Authors of Tetragon */ + +#ifndef __LINUX_MODULE_H__ +#define __LINUX_MODULE_H__ + +#ifndef TG_MODULE_NAME_LEN +#define TG_MODULE_NAME_LEN 32 +#endif + +struct tg_load_module { + char name[TG_MODULE_NAME_LEN]; + u32 sig_ok; +}; + +#endif