}
static int pakfire_file_check_ssp(struct pakfire_file* file) {
+ // This check will be skipped for these files
+ static const char* whitelist[] = {
+ "/usr/lib64/libgcc_s.so.*",
+ "/usr/lib64/libmvec.so.*",
+ NULL,
+ };
+
// Do not perform this check for runtime linkers
if (pakfire_file_matches_class(file, PAKFIRE_FILE_RUNTIME_LINKER))
return 0;
if (file->issues & PAKFIRE_FILE_MISSING_DEBUGINFO)
return 0;
+ // Check if this file is whitelisted
+ for (const char** path = whitelist; *path; path++) {
+ if (pakfire_file_matches(file, *path)) {
+ DEBUG(file->pakfire, "Skipping SSP check for whitelisted file %s\n",
+ pakfire_file_get_path(file));
+ return 0;
+ }
+ }
+
return pakfire_file_open_elf(file, __pakfire_file_check_ssp, NULL);
}