From 30ffed147fa963eb839a35bbb66eecff66a17597 Mon Sep 17 00:00:00 2001 From: Lovel Rishi Date: Tue, 30 Apr 2024 14:09:27 -0400 Subject: [PATCH] Use config check to enable memfd related processing (#550) Signed-off-by: Lovel Rishi --- driver/ppm_fillers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/ppm_fillers.c b/driver/ppm_fillers.c index 7846001f20..f3fd07f6a3 100644 --- a/driver/ppm_fillers.c +++ b/driver/ppm_fillers.c @@ -112,7 +112,7 @@ static inline struct pid_namespace *pid_ns_for_children(struct task_struct *task **/ static inline uint32_t get_exe_from_memfd(const struct file *exe_file) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) +#if defined(CONFIG_MEMFD_CREATE) && CONFIG_MEMFD_CREATE == 1 const char expected_prefix[] = "memfd:"; if(!(exe_file && exe_file->f_path.dentry &&