{ "*.la", PAKFIRE_FILE_LIBTOOL_ARCHIVE },
{ "*.pm", PAKFIRE_FILE_PERL },
{ "*.pc", PAKFIRE_FILE_PKGCONFIG },
+ { "/usr/lib/firmware/*", PAKFIRE_FILE_FIRMWARE },
{ NULL , 0 },
};
return -1;
}
+ // Do not perform this check on firmware
+ if (pakfire_file_matches_class(file, PAKFIRE_FILE_FIRMWARE))
+ return 0;
+
switch (pakfire_file_get_elf_type(file)) {
// Do not check Relocatable Objects
case ET_REL:
int pakfire_file_check_hardening(struct pakfire_file* file, int* issues) {
int r;
+ // Do not perform this check on firmware
+ if (pakfire_file_matches_class(file, PAKFIRE_FILE_FIRMWARE))
+ return 0;
+
// Return previous result if this has been run before
if (!file->hardening_check_done) {
switch (pakfire_file_get_elf_type(file)) {
PAKFIRE_FILE_PERL = (1 << 10),
PAKFIRE_FILE_STATIC_LIBRARY = (1 << 11),
PAKFIRE_FILE_LIBTOOL_ARCHIVE = (1 << 12),
+ PAKFIRE_FILE_FIRMWARE = (1 << 13),
};
int pakfire_file_create_from_path(struct pakfire_file** file,