diff --git a/util.py b/util.py index 914add2e..a957b31e 100644 --- a/util.py +++ b/util.py @@ -7,7 +7,6 @@ import re import shutil import signal -import stat import tarfile import zipfile import subprocess @@ -485,9 +484,7 @@ def patch_libcuda() -> bool: f.write(patched_binary_data) # Set permissions to rwxr-xr-x (755) - os.chmod(patched_library, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | # Owner: rwx - stat.S_IRGRP | stat.S_IXGRP | # Group: r-x - stat.S_IROTH | stat.S_IXOTH) # Others: r-x + os.chmod(patched_library, 0o755) log.debug(f'Permissions set to rwxr-xr-x for {patched_library}') except OSError as e: log.crit(f'Unable to write patched libcuda.so to {patched_library}: {e}')