diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-04-04 11:24:02 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-04-04 11:24:02 +0200 |
commit | 418802c14c0b7ba1cba0fa595f3a13461ec36cfa (patch) | |
tree | 81422cdce0e3dc40112165ee1c323f0bdda9c887 | |
parent | 29a63a8b089ea2d89ce24fcf795f8a775c477e50 (diff) | |
download | python-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.py | 2 |
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): |