]> git.ipfire.org Git - pakfire.git/commitdiff
file: Rename NO-* flags to MISSING-*
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 Mar 2023 15:30:01 +0000 (15:30 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 Mar 2023 15:30:01 +0000 (15:30 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/file.c
src/libpakfire/include/pakfire/file.h

index b559333d9e2a1d3f098e639a106c924ca395fbe4..aed2284a7afcb271b9948069c8c468f03bc939f0 100644 (file)
@@ -630,15 +630,15 @@ char* pakfire_file_dump(struct pakfire_file* file, int flags) {
                }
 
                // 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;
                }
@@ -1804,7 +1804,7 @@ static int __pakfire_file_check_ssp(
        }
 
        // The file does not seem to have SSP enabled
-       file->issues |= PAKFIRE_FILE_NO_SSP;
+       file->issues |= PAKFIRE_FILE_MISSING_SSP;
 
        return 0;
 }
@@ -1829,7 +1829,7 @@ static int pakfire_file_check_pie(struct pakfire_file* file) {
 
                // Everything else is bad
                default:
-                       file->issues |= PAKFIRE_FILE_NO_PIE;
+                       file->issues |= PAKFIRE_FILE_MISSING_PIE;
                        break;
        }
 
index d6f4e55888960730fd4fff0d56938d5738d32b42..382c01c1f10498c8b9b5b4e998ef538ad31464cf 100644 (file)
@@ -178,8 +178,8 @@ int pakfire_file_verify(struct pakfire_file* file, int* status);
 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),
 };