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

This commit is contained in:
Amin Alaee
2023-09-24 17:23:30 +02:00
committed by GitHub
parent 8c4dd38840
commit 0a92429627
3 changed files with 38 additions and 13 deletions

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