]> git.ipfire.org Git - pakfire.git/commitdiff
build: ELF files must always be executable
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Jan 2025 17:31:02 +0000 (17:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Jan 2025 17:31:02 +0000 (17:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/build.c

index cd4526d05d96598ee8b9bc9e03266bd22a457c86..040554c8097deb74005e39c8972df5c7667cfd8f 100644 (file)
@@ -641,6 +641,10 @@ static int pakfire_build_find_elf_requires(
        char** requires = NULL;
        int r;
 
+       // Files must be executable
+       if (!pakfire_file_is_executable(file))
+               return 0;
+
        // Try to open the ELF file
        r = pakfire_elf_open_file(&elf, ctx, file);
        if (r < 0) {