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

Update to nix 0.27.1 #42

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

vthib
Copy link
Contributor

@vthib vthib commented Sep 19, 2023

Nix 0.27 now uses the OwnedFd/BorrowedFd API from Rust 1.63.

The setns call needs a BorrowedFd, while we only have a raw fd. We could either create a OwnedFd or a BorrowedFd from the open done in unshare_processing, but the OwnedFd would close on drop, while there is no close in the current code, so I simply created a BorrowedFd on the fly. I'm not sure whether the missing close is a bug or not.

@dingelish
Copy link

Hi @cathay4t, do you mind taking a quick look at this? We need the upgrade as well. Thanks!

@cheese
Copy link

cheese commented Nov 3, 2023

The upgrade is needed for LoongArch support.

@kayabaNerve
Copy link

Also would love to see this. @JohnTitor is another maintainer of this repo (I believe) and may be able to move it forward, if they have a moment?

@JohnTitor JohnTitor closed this Nov 22, 2023
@JohnTitor JohnTitor reopened this Nov 22, 2023
Copy link
Contributor

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

LGTM, sorry for the delay!

@JohnTitor JohnTitor merged commit 0458e60 into rust-netlink:main Nov 22, 2023
3 checks passed
@kayabaNerve
Copy link

kayabaNerve commented Nov 23, 2023

Thanks! Much appreciated :)

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.

5 participants