def is_elf_binary()

in scripts/elf_rockylinux_dependency_analyzer.py [0:0]


def is_elf_binary(file_path):
    file_output = run_command(['file', file_path])
    return 'ELF' in file_output and ('executable' in file_output or 'shared object' in file_output)