{ "*.pm", PAKFIRE_FILE_PERL },
{ "*.pc", PAKFIRE_FILE_PKGCONFIG },
{ "/usr/lib/firmware/*", PAKFIRE_FILE_FIRMWARE },
+ { "/usr/lib*/ld-*.so*", PAKFIRE_FILE_RUNTIME_LINKER },
{ NULL , 0 },
};
}
static int pakfire_file_hardening_check_ssp(struct pakfire_file* file) {
+ // Do not perform this check for runtime linkers
+ if (pakfire_file_matches_class(file, PAKFIRE_FILE_RUNTIME_LINKER))
+ return 0;
+
return pakfire_file_open_elf(file, __pakfire_file_hardening_check_ssp, NULL);
}
PAKFIRE_FILE_STATIC_LIBRARY = (1 << 11),
PAKFIRE_FILE_LIBTOOL_ARCHIVE = (1 << 12),
PAKFIRE_FILE_FIRMWARE = (1 << 13),
+ PAKFIRE_FILE_RUNTIME_LINKER = (1 << 14),
};
int pakfire_file_create_from_path(struct pakfire_file** file,