From: Michael Tremer Date: Fri, 3 Jan 2025 17:52:09 +0000 (+0000) Subject: ELF: Actually return findings on the CF protection check X-Git-Tag: 0.9.30~552 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=daaa64ce4442bcc330e183c41f708e687a368409;p=pakfire.git ELF: Actually return findings on the CF protection check Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/elf.c b/src/pakfire/elf.c index f3f2adf03..3896a3752 100644 --- a/src/pakfire/elf.c +++ b/src/pakfire/elf.c @@ -697,7 +697,7 @@ static int pakfire_elf_check_cf_protection_aarch64(struct pakfire_elf* self, if (!(property & GNU_PROPERTY_AARCH64_FEATURE_1_PAC)) flags |= PAKFIRE_ELF_MISSING_PAC; - return 0; + return flags; } static int pakfire_elf_check_cf_protection_riscv64(struct pakfire_elf* self, @@ -729,7 +729,7 @@ static int pakfire_elf_check_cf_protection_x86_64(struct pakfire_elf* self, if (!(property & GNU_PROPERTY_X86_FEATURE_1_SHSTK)) flags |= PAKFIRE_ELF_MISSING_SHSTK; - return 0; + return flags; } static int pakfire_elf_check_cf_protection(struct pakfire_elf* self,