]> git.ipfire.org Git - pakfire.git/commitdiff
linter: Check for more symbols for SSP
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 15:51:21 +0000 (15:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 15:51:21 +0000 (15:51 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/linter-file.c

index 69fbdd640c8aa65f2b829edd03a717639bf42218..b40e8ff6b8e8395c50f213a0083097a16d0a9096 100644 (file)
@@ -407,6 +407,14 @@ static int __pakfire_linter_file_check_ssp(
                if (pakfire_string_startswith(name, "__stack_chk_fail"))
                        return 0;
 
+               // Or if the symbol is called __stack_chk_guard
+               else if (pakfire_string_startswith(name, "__stack_chk_guard"))
+                       return 0;
+
+               // Or if the symbol is called __intel_security_cookie
+               else if (pakfire_string_startswith(name, "__intel_security_cookie"))
+                       return 0;
+
                // Count any global functions
                if ((ELF64_ST_BIND(symbol.st_info) == STB_GLOBAL) &&
                                (ELF64_ST_TYPE(symbol.st_info) == STT_FUNC))