]> git.ipfire.org Git - people/ric9/pakfire.git/commitdiff
linter: Whitelist the runtime linker for the SSP check
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Jan 2025 23:02:11 +0000 (23:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Jan 2025 23:02:11 +0000 (23:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/linter-file.c

index b775f41d5bc555e20214853293103bd7a0e4eee4..5fdeddbf9194489dab79f0846acec7b76098174b 100644 (file)
@@ -317,15 +317,15 @@ static int pakfire_linter_file_check_pie(struct pakfire_linter_file* lfile) {
 static int pakfire_linter_file_check_ssp(struct pakfire_linter_file* lfile) {
        // This check will be skipped for these files
        static const char* whitelist[] = {
+               // Runtime Linker
+               "/usr/lib*/ld-*.so*",
+
+               // GCC
                "/usr/lib64/libgcc_s.so.*",
                "/usr/lib64/libmvec.so.*",
                NULL,
        };
 
-       // Do not perform this check for runtime linkers
-       if (pakfire_file_matches(lfile->file, "/usr/lib*/ld-*.so*"))
-               return 0;
-
        // Check if this file is whitelisted
        for (const char** path = whitelist; *path; path++) {
                if (pakfire_file_matches(lfile->file, *path)) {