Add os.unshare clone flags for Linux, Python 3.12+ (#10757)

This commit is contained in:
Amin Alaee authored and GitHub committed 2023-09-24 16:23:30 +01:00
1 parent 8c4dd38840
commit 0a92429627
3 files changed
+38 -13

No files matched your search

+16
View File
@@ -1056,3 +1056,19 @@ if sys.version_info >= (3, 12) and sys.platform == "win32":
def listdrives() -> list[str]: ...
def listmounts(volume: str) -> list[str]: ...
def listvolumes() -> list[str]: ...
if sys.version_info >= (3, 12) and sys.platform == "linux":
CLONE_FILES: int
CLONE_FS: int
CLONE_NEWCGROUP: int
CLONE_NEWIPC: int
CLONE_NEWNET: int
CLONE_NEWNS: int
CLONE_NEWPID: int
CLONE_NEWTIME: int
CLONE_NEWUSER: int
CLONE_NEWUTS: int
CLONE_SIGHAND: int
CLONE_SYSVSEM: int
CLONE_THREAD: int
CLONE_VM: int