Skip to content

fix(enter): Fix resolv.conf bind-mount#154

Merged
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:enter-fix-finding-resolv-conf-v2
Jan 29, 2026
Merged

fix(enter): Fix resolv.conf bind-mount#154
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:enter-fix-finding-resolv-conf-v2

Conversation

@Sporif
Copy link
Copy Markdown
Collaborator

@Sporif Sporif commented Jan 23, 2026

The previous implementation led to incorrect target resolv.conf paths. Switch to using openat2 to handle a symlink by directly opening it and the "new" mount api to mount over it.

I also have an older branch that just copies the nixos-enter implementation more closely, if that's preferable.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 23, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

The previous implementation led to incorrect target resolv.conf paths.
Switch to using openat2 to handle a symlink by directly opening it
and the "new" mount api to mount over it. Using file descriptors
also helps us avoid TOCTOU bugs.
@Sporif Sporif force-pushed the enter-fix-finding-resolv-conf-v2 branch from 37daf12 to b4f7538 Compare January 29, 2026 09:29
Copy link
Copy Markdown
Collaborator

@water-sucks water-sucks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIce work! Again, really appreciate the improvements you have been making to this codebase.

@water-sucks water-sucks merged commit 46f8f4a into nix-community:main Jan 29, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants