From 418802c14c0b7ba1cba0fa595f3a13461ec36cfa Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 4 Apr 2024 11:24:02 +0200 Subject: avoid hard coding the soname of the libc Passing None as name also yields libc functions. --- linuxnamespaces/syscalls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3