summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-04-04 11:24:02 +0200
committerHelmut Grohne <helmut@subdivi.de>2024-04-04 11:24:02 +0200
commit418802c14c0b7ba1cba0fa595f3a13461ec36cfa (patch)
tree81422cdce0e3dc40112165ee1c323f0bdda9c887
parent29a63a8b089ea2d89ce24fcf795f8a775c477e50 (diff)
downloadpython-linuxnamespaces-418802c14c0b7ba1cba0fa595f3a13461ec36cfa.tar.gz
avoid hard coding the soname of the libc
Passing None as name also yields libc functions.
-rw-r--r--linuxnamespaces/syscalls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxnamespaces/syscalls.py b/linuxnamespaces/syscalls.py
index d7154fc..d9d37eb 100644
--- a/linuxnamespaces/syscalls.py
+++ b/linuxnamespaces/syscalls.py
@@ -16,7 +16,7 @@ import typing
from .atlocation import AtFlags, AtLocation, AtLocationLike, PathConvertible
-LIBC_SO = ctypes.CDLL("libc.so.6", use_errno=True)
+LIBC_SO = ctypes.CDLL(None, use_errno=True)
class CloneFlags(enum.IntFlag):