Extend product-in sed to cover shared/, not-in, and single quotes #1

Merged
alukoshko merged 1 commits from swoutersup/scap-security-guide:fix/product-in-sed-coverage into a10 2026-07-16 13:31:47 +00:00

1 Commits

Author SHA1 Message Date
Sam Wouters
b2132c049f Extend product-in sed to cover shared/, not-in, and single quotes
The existing sed only searched linux_os/ and only matched double-quoted
product names in 'if product in' blocks. This missed:

- Rules in shared/ that gate on product (e.g. PAM OVAL checks)
- Exclusion lists using 'if product not in [...]'
- Single-quoted product names in either form

Extend the find path to linux_os/ and shared/, and add the three
missing -e expressions to cover all four combinations.
2026-07-15 18:06:18 +02:00