Hi, I am trying to modularize openat-proc, in order to create an openat using passfd. I have created a test file for openat-proc, and I think we could a little bit simplify the test of solaris bug, and drop a dependency on same inode.
Instead of comparing /proc/self inode why not trying to open and stat /../proc fd. If the bug is present it will expand to /proc/self/fd//../proc that will not be present and stat will return ENOENT Bastien
