#1029836 modsecurity-crs: Should reload apache2 in updates / package install

#1029836#5
Date:
2023-01-28 14:49:43 UTC
From:
To:
When preparing security updates for LTS/ELTS, I saw that apache is not reloaded
when the package is installed or upgraded.

This means that apache will still use the old rules, perhaps a long time, until
apache is restarted by other means

In case where the new package fixes security issues, this leaves the user exposed
(therefore severiy important.)

The attached postinst / postrm scripts fixes this issue.

#1029836#10
Date:
2023-07-30 10:15:53 UTC
From:
To:
Hi Tobias,

thanks for your patches.

As you know :) since Bookworm Nginx is also able to work as WAF with
libmodsecurity3, and can use modsecurity-crs.

This means the package modsecurity-crs does not need to depend on Apache in
the future. And this implies that after install/upgrade the package won't
know what should it reload: Apache or Nginx?

I think we have to review the whole package structure in the future, because
if the CRS 4.0 will be released, then we must change the structure, see
#1036353[1].

Thanks again to your report and for the patches.

a.

1: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1036353