Skip to content

[bug] /proc/self/exe、/proc/<pid>/exe、/proc/self/cwd 未做 #1900

Closed

Description

@caomengxuan666

vfs 审计 D7(~/workspace/vfs-audit/REPORT.md §5)。

复现(Windows):readlink /proc/self/exe、test -e /proc/self/exe 均落空;ls -l /proc/self/ 无 exe 条目。GNU 锚点:/proc 实物 readlink 语义。

Regression seed:readlink 结果指向 shell 自身映像路径一钉。差分检验:三家 /proc/self/exe 皆可读,作形状参照。

归宿:统一层实现线(审计报告 ~/workspace/vfs-audit/REPORT.md §4 切片序与 §4.6 落位),1.5.0 前落地;本条为该线立案,回归钉随修复同行。

Activity

  1. added
    bug
    gnu-baseline
    P3-low
    area:fd
    on Oct 28, 2026
  2. added a commit that references this issue on Oct 28, 2026
  3. caomengxuan666 commented on Oct 28, 2026

    @caomengxuan666
    MemberAuthor

    Fixed by PR #1922, merged 2026-10-28 (merge commit 842e0e2). /proc//exe and /proc/self/cwd are SyntheticLink registry entries resolved via proc_link_target / proc_unary_facts; self/cwd consults only the G-02 session cwd, never the process-global cwd. Consumers wired: open ladder, builtin cat face, command_input_scope decline points, test/[[ ]] facts hook. Final-head CI all green (run 40665988059: goldens lib 993/0/3, regression 169/0). Residual faces from the A period are filed separately: #1935 (<> service face), #1936 (test -w/-x), #1937 (< /proc/self/cwd failure shape). Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P3-lowarea:fdbuggnu-baseline

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions