Skip to content

Commit ff5cf98

Browse files
lrishipoiana
authored andcommitted
Use config check to enable memfd related processing (#550)
Signed-off-by: Lovel Rishi <lovelworks@gmail.com>
1 parent 0951328 commit ff5cf98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/ppm_fillers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static inline struct pid_namespace *pid_ns_for_children(struct task_struct *task
112112
**/
113113
static inline uint32_t get_exe_from_memfd(const struct file *exe_file)
114114
{
115-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)
115+
#if defined(CONFIG_MEMFD_CREATE) && CONFIG_MEMFD_CREATE == 1
116116
const char expected_prefix[] = "memfd:";
117117
if(!(exe_file &&
118118
exe_file->f_path.dentry &&

0 commit comments

Comments
 (0)