summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNoam Cohen <noam@noam.me>2022-10-20 09:08:54 (GMT)
committerGitHub <noreply@github.com>2022-10-20 09:08:54 (GMT)
commita371a7e03e43e08cae70235a71904989c0f57a5e (patch)
tree40b9d4b13ec579ae370760e2dafd888e32f2b06f /configure
parentc1e02d4e4e09dfc9d57c4d36eca1bbf312d4162d (diff)
downloadcpython-a371a7e03e43e08cae70235a71904989c0f57a5e.zip
cpython-a371a7e03e43e08cae70235a71904989c0f57a5e.tar.gz
cpython-a371a7e03e43e08cae70235a71904989c0f57a5e.tar.bz2
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index 0e9f72f..15d9796 100755
--- a/configure
+++ b/configure
@@ -19111,6 +19111,20 @@ fi
done
+# check for namespace functions
+for ac_func in setns unshare
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+