Skip to content

Commit

Permalink
Use config check to enable memfd related processing (falcosecurity#550)
Browse files Browse the repository at this point in the history
Signed-off-by: Lovel Rishi <lovelworks@gmail.com>
  • Loading branch information
lrishi authored and Andreagit97 committed May 2, 2024
1 parent 4e61106 commit 30ffed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/ppm_fillers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 30ffed1

Please sign in to comment.