perf(sandbox): optimize code encryption handling

This commit is contained in:
Eternity
2026-01-26 12:22:54 +08:00
parent 0fd8a122fb
commit 1fc04c37d3
2 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ sys.excepthook = excepthook
# Load security library if available
lib = ctypes.CDLL("./libpython.so")
lib.init_seccomp.argtypes = [ctypes.c_uint32, ctypes.c_uint32, ctypes.c_bool]
lib.init_seccomp.restype = None
lib.init_seccomp.restype = None # TODO: raise error info
# Get running path
running_path = sys.argv[1]