}
// Stack-smashing Protection
- if (file->issues & PAKFIRE_FILE_NO_SSP) {
- r = asprintf(&buffer, "%s [NO-SSP]", buffer);
+ if (file->issues & PAKFIRE_FILE_MISSING_SSP) {
+ r = asprintf(&buffer, "%s [MISSING-SSP]", buffer);
if (r < 0)
goto ERROR;
}
// Position-independent Executable
- if (file->issues & PAKFIRE_FILE_NO_PIE) {
- r = asprintf(&buffer, "%s [NO-PIE]", buffer);
+ if (file->issues & PAKFIRE_FILE_MISSING_PIE) {
+ r = asprintf(&buffer, "%s [MISSING-PIE]", buffer);
if (r < 0)
goto ERROR;
}
}
// The file does not seem to have SSP enabled
- file->issues |= PAKFIRE_FILE_NO_SSP;
+ file->issues |= PAKFIRE_FILE_MISSING_SSP;
return 0;
}
// Everything else is bad
default:
- file->issues |= PAKFIRE_FILE_NO_PIE;
+ file->issues |= PAKFIRE_FILE_MISSING_PIE;
break;
}
enum pakfire_file_check_issues {
PAKFIRE_FILE_FHS_ERROR = (1 << 0),
PAKFIRE_FILE_MISSING_DEBUGINFO = (1 << 1),
- PAKFIRE_FILE_NO_SSP = (1 << 2),
- PAKFIRE_FILE_NO_PIE = (1 << 3),
+ PAKFIRE_FILE_MISSING_SSP = (1 << 2),
+ PAKFIRE_FILE_MISSING_PIE = (1 << 3),
PAKFIRE_FILE_EXECSTACK = (1 << 4),
PAKFIRE_FILE_NO_PARTIALLY_RELRO = (1 << 5),
};