Aleksa Sarai <cyphar@xxxxxxxxxx> wrote: > Right, but open_tree() doesn't need RESOLVE_ flags (nor can you add them > without an open_tree2()). Instead you can pass an O_PATH file descriptor > with AT_EMPTY_PATH which you could've safely resolved with openat2(). Note that openat2() is not a substitute for open_tree(). See the effect of the OPEN_TREE_CLONE flag. David