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

libcontainer: drop system.Setxid #4067

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

neersighted
Copy link
Contributor

Since Go 1.16, Go issue 1435 is solved, and the stdlib syscall implementations work on Linux. While they are a bit more flexible/heavier-weight than the implementations that were copied to libcontainer/system (working across all threads), we compile with Cgo, and using the libc wrappers should be just as suitable.

Since Go 1.16, [Go issue 1435][1] is solved, and the stdlib syscall
implementations work on Linux. While they are a bit more
flexible/heavier-weight than the implementations that were copied to
libcontainer/system (working across all threads), we compile with Cgo,
and using the libc wrappers should be just as suitable.

  [1]: golang/go#1435

Signed-off-by: Bjorn Neergaard <[email protected]>
@kolyshkin
Copy link
Contributor

These functions were initially added by commit 7d268af, and their use was added by commit 59584e5. Both commits cite Go 1.4.

Yes, I think we can switch to the implementation in the syscall package, thanks!

Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

LGTM

@AkihiroSuda AkihiroSuda merged commit 4232286 into opencontainers:main Oct 11, 2023
45 checks passed
@neersighted neersighted deleted the syscall_cleanup branch October 12, 2023 01:26
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.

3 participants