Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

openat2 support for RESOLVE_WITH_ROOTFD

Open
#377 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
linux, rust
Domain
backend, security

Research direction

Start by reading the openat2(2) interface and the existing RESOLVE_IN_ROOT and RESOLVE_BENEATH handling in libpathrs. The issue proposes ways to let rootfd and cwdfd differ, but does not identify files, tests, or a settled API design; determine the intended interface and assess its impact before implementation. Done means supporting the chosen flag semantics and covering them with tests for distinct rootfd and cwdfd values.

Written by the indexing model from the issue text.

Description

linux/upstream

The rootfd and cwdfd always having to be the same fd with openat2(2) is quite inconvenient and it makes implementing things like symlink-follow O_CREAT support not really possible in a nice way (i.e., without completely re-doing lookups an unbounded number of times), and some other problems are almost intractable without this interface.

Options are to have one bit (RESOLVE_WITH_ROOTFD) that must be used with RESOLVE_IN_ROOT or RESOLVE_BENEATH, or just have two new versions of those flags (RESOLVE_IN_ROOTFD, RESOLVE_BENEATH_ROOTFD or RESOLVE_BENEATHFD).

Dominant language
Rust
Stars
146
Forks
12
Avg merge
4d 18h
Merged PRs (30d)
1

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cyphar/libpathrs

All issues in cyphar/libpathrs

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.