mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-95023: Added os.setns and os.unshare functions (#95046)
Added os.setns and os.unshare to easily switch between namespaces on Linux. Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
c1e02d4e4e
commit
a371a7e03e
11 changed files with 418 additions and 1 deletions
|
|
@ -1067,6 +1067,9 @@
|
|||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#undef HAVE_SETLOCALE
|
||||
|
||||
/* Define to 1 if you have the `setns' function. */
|
||||
#undef HAVE_SETNS
|
||||
|
||||
/* Define to 1 if you have the `setpgid' function. */
|
||||
#undef HAVE_SETPGID
|
||||
|
||||
|
|
@ -1437,6 +1440,9 @@
|
|||
/* Define to 1 if you have the `unlinkat' function. */
|
||||
#undef HAVE_UNLINKAT
|
||||
|
||||
/* Define to 1 if you have the `unshare' function. */
|
||||
#undef HAVE_UNSHARE
|
||||
|
||||
/* Define if you have a useable wchar_t type defined in wchar.h; useable means
|
||||
wchar_t must be an unsigned type with at least 16 bits. (see
|
||||
Include/unicodeobject.h). */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue