Skip to content

Commit

Permalink
/proc/pid/maps: dont allow paths with lineage to be listed
Browse files Browse the repository at this point in the history
  • Loading branch information
backslashxx committed Dec 16, 2024
1 parent aed4d24 commit 9315cb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fs/proc/task_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,11 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
bypass_orig_flow:
#endif
pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT;
struct dentry *dentry = file->f_path.dentry;
if (dentry) {
const char *path = (const char *)dentry->d_name.name;
if (strstr(path, "lineage")) { return; }
}
}

/* We don't show the stack guard page in /proc/maps */
Expand Down

0 comments on commit 9315cb7

Please sign in to comment.