musec / libpreopen

Library for wrapping libc functions that require ambient authority
84 stars 8 forks source link

need to interpose `*at(AT_FDCWD` #11

Open emaste opened 5 years ago

emaste commented 5 years ago

Some software calls *at() functions with AT_FDCWD instead of plain functions. Notably, this is true for anything using fts(). fts() calls fstatat() always.

libpreopen must interpose these *at() functions, performing a find_relative() in the AT_FDCWD case.

emaste commented 5 years ago

These:

Ericson2314 commented 5 years ago

https://github.com/CraneStation/wasi-sysroot/issues/42 We've hit this with WASI too.