-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-95023: Added os.setns and os.unshare to easily switch between namespaces on Linux #95046
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
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
0bdd8bc
gh-95023: added os.setns and os.unshare for namespaces switching on L…
noamcohen97 3685a27
remove gil release
noamcohen97 8f22740
better setns, unshare doc
noamcohen97 5115c8a
added example to setns
noamcohen97 8845a86
added note about fileno for setns
noamcohen97 d7bb582
added see also section for os.unshare
noamcohen97 987613a
Update configure.ac
noamcohen97 4c91413
Revert "remove gil release"
noamcohen97 7d23963
better docs
noamcohen97 b7abf20
assume Linux platform has a working readlink
noamcohen97 af74db5
change ifdefs
noamcohen97 5181126
added missing `CLONE_*` consts
noamcohen97 3a37ac2
run unshare in a different process
noamcohen97 1386833
reformat doc
noamcohen97 ae4b661
indent test code
noamcohen97 57b2c84
Apply suggestions from code review
noamcohen97 b2df7f7
better doc
noamcohen97 b4a68b6
Merge branch 'main' into namespaces
noamcohen97 dc51d01
remove whitespaces from doc
noamcohen97 5a3cff5
fix NEWS entry
noamcohen97 1d45196
move test code to another file
noamcohen97 84c4b8c
add glibc requirements to doc
noamcohen97 b9d3a34
Revert "move test code to another file"
noamcohen97 51c60d4
proofreaders review fixes
noamcohen97 225e06b
fix doc whitespaces
noamcohen97 fb64bb7
better documentation
noamcohen97 01d4af4
fix docs
noamcohen97 15e6d8b
remove bitwise or explanation
noamcohen97 375165b
Apply suggestions from code review
noamcohen97 7e2b44c
fix typo
noamcohen97 3ae952c
ref
noamcohen97 432d274
fix doc whitespace
noamcohen97 afa9a00
Merge remote-tracking branch 'upstream/main' into namespaces
noamcohen97 54c7bce
Merge remote-tracking branch 'upstream/main' into namespaces
noamcohen97 01713ec
regen posixmodule
noamcohen97 a6bb345
add name to `Misc/ACKS`
noamcohen97 1c0fb83
Merge remote-tracking branch 'upstream/main' into namespaces
noamcohen97 dac402a
fix doc availability
noamcohen97 ff7f961
regen global strings
noamcohen97 cc44f01
Merge remote-tracking branch 'upstream/main' into namespaces
noamcohen97 58bc8a6
Merge branch 'main' into namespaces
noamcohen97 b14396e
Merge remote-tracking branch 'upstream/main' into namespaces
noamcohen97 50c4809
Merge branch 'main' into namespaces
noamcohen97 de7dd3d
do not use stdout for test
noamcohen97 5c1bbdd
move all test login to subprocess
noamcohen97 29129d9
Update Lib/test/test_posix.py
noamcohen97 94883a4
add comments to tests
noamcohen97 3e365d2
bugfix in test while handling `ENOSPC`
noamcohen97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Core and Builtins/2022-07-20-09-04-55.gh-issue-95023.bs-xd7.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Implement :func:`os.setns` and :func:`os.unshare` for Linux. Patch by Noam Cohen. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.