On Fri, 14 Jan 2022, Christos Zoulas wrote:
That looks nice, committed and forgot to give you credit, apologies.
Thanks, but, the 1st part of the patch with the corrections to the table need to go in as well, otherwise there's a mismatch between what the table says and what the code does: exe is a link:procfs_readlink(); emul is a reg. file:procfs_doemul(): { DT_LNK, N("emul"), PFSemul, NULL }, { DT_REG, N("exe"), PFSexe, procfs_validfile }, $ ls -l /proc/self/emul /proc/self/exe -r--r--r-- 1 rvp rvp 6 Jan 14 20:23 /proc/self/emul lr-xr-xr-x 1 root wheel 7 Jan 14 20:23 /proc/self/exe -> /bin/ls $ ./a.out /proc/self # print d_type vs. st_mode mismatches DT_LNK: S_ISREG emul DT_REG: S_ISLNK exe -RVP