On Apr 5, 2024, at 2:22 PM, ron minnich <rminnich@gmail.com> wrote:not so much what I want, I'm curious about ideas people have about implementing it that I would not think of.On Fri, Apr 5, 2024 at 1:38 PM Gorka Guardiola <paurea@gmail.com> wrote:Hmm sorry. Now I see what you want. Not to rewalk. You can use the chan of the dirfd and walk just the remainder cloning it and creating a new one. That way the openat provides the guarantees you want.On Fri, Apr 5, 2024, 22:15 Gorka Guardiola <paurea@gmail.com> wrote:I mean, if you want a new syscall jus copy or call the implementation of these.On Fri, Apr 5, 2024, 22:12 Gorka Guardiola <paurea@gmail.com> wrote:¿Isn't that fd2path, strcat and open?Or am I misunderstanding something?On Fri, Apr 5, 2024, 21:51 ron minnich <rminnich@gmail.com> wrote:One of the folks I worked with, when we pulled a big chunk of plan 9 into akaros, commented that he had implemented openat on akaros.I don't want this to turn into a debate on the merits of openat; I am more curious: if you went to implement openat on Plan 9, how would you go about it? I have a few ideas but I'm more interested in your ideas.Thanks