Skip to content

support enhanced fd-related APIs #365

@cyphar

Description

@cyphar

There are quite a few *at(2) syscalls which don't work with O_PATH file descriptors but can be worked around with /proc/self/fd/.... We should probably

The obvious ones are:

  • *xattrat were added in 6.13, we will need fallbacks using /proc/self/fd/... (we can't even do the dirfd trick...).
  • fchmodat(2) (AT_EMPTY_PATH supported since Linux 6.6).
  • fchownat(2) (AT_EMPTY_PATH supported since Linux 2.6.39, but best to add it for symmetry with fchmodat(2)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    api/cffiRelated to the C-FFI API.api/handleRelated to the handle API.api/rustRelated to the Rust API.impact/featureAn issue or PR that adds new distinct functionality.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions