| |
@@ -288,11 +288,11 @@
|
| |
|
| |
if not extra:
|
| |
self.set_passed(self.NA)
|
| |
- elif self.spec.find_re(r"[^# ]*%global\s+_hardened_build\s+1"):
|
| |
- self.set_passed(self.PASS, extra)
|
| |
- else:
|
| |
- extra += " and not %global _hardened_build"
|
| |
+ elif self.spec.find_re(r"[^# ]*%undefine\s+_hardened_build"):
|
| |
+ extra += " and %undefine _hardened_build"
|
| |
self.set_passed(self.FAIL, extra)
|
| |
+ else:
|
| |
+ self.set_passed(self.PASS, extra)
|
| |
|
| |
|
| |
class CheckDefattr(GenericCheckBase):
|
| |
CheckDaemonCompileFlags checked that
%global _hardened_build
appearswhen certain vulnerable conditions were met.
For a long time already, the hardened build is the default.
Correspondingly, the packaging guidelines have changed
so that disabling hardened build is forbidden in certain conditions.
Updated the check to look for
%undefine _hardened_build
insteadand pass or fail the test accordingly.
Resolves #436