Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to interpose *at(AT_FDCWD #11

Open
emaste opened this issue Mar 1, 2019 · 2 comments
Open

need to interpose *at(AT_FDCWD #11

emaste opened this issue Mar 1, 2019 · 2 comments

Comments

@emaste
Copy link
Contributor

emaste commented Mar 1, 2019

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
Copy link
Contributor Author

emaste commented Mar 1, 2019

These:

  • faccessat
  • bindat
  • chflagsat
  • fchmodat
  • fchownat
  • connectat
  • fhlinkat
  • getfhat
  • linkat
  • mkdirat
  • mkfifoat
  • mknodat
  • openat
  • readlinkat
  • renameat
  • fstatat
  • symlinkat
  • unlinkat

@Ericson2314
Copy link

WebAssembly/wasi-libc#42 We've hit this with WASI too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants