Documentation: Clarify dynamic module ABI compatibility with distribution-patched NGINX packages

Aperta
#419 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@airween ci sta già lavorando.

Dal 25/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement

Documentation improvement proposal

Hello,

First of all, thank you for maintaining ModSecurity and the NGINX connector.

I recently encountered an ABI compatibility issue while compiling the ModSecurity-nginx dynamic module for a distribution-packaged NGINX installation.

The issue has been resolved, and I would like to suggest a small documentation improvement that could help other administrators avoid similar problems.

Environment

  • Ubuntu 26.04.1 LTS (amd64)
  • NGINX: 1.28.3-2ubuntu1.14 (Ubuntu package)
  • ModSecurity-nginx: v1.0.4
  • libmodsecurity: v3.0.17
  • OWASP CRS: v4.31.0
  • GCC: 15.2.0

Observed behavior

Building the dynamic connector against the original upstream NGINX 1.28.3 sources completed successfully.

The issue was caused by a mismatch between the upstream NGINX headers and the distribution-patched NGINX package.

Rebuilding the connector using the headers and build configuration provided by the exact matching Ubuntu nginx-dev package resolved the problem without changing the connector or libmodsecurity version.

Suggested documentation improvement

The README currently explains that the NGINX source version must match the target NGINX version when building a dynamic module.

It might be helpful to clarify that matching the upstream version number alone does not necessarily guarantee ABI compatibility when using distribution-packaged NGINX binaries.

Suggested wording:

When building a dynamic module for a distribution-packaged NGINX installation, use the corresponding distribution-provided sources or development headers and compatible build configuration. Distribution-specific patches may introduce ABI differences even when the upstream NGINX version number is identical. On Debian and Ubuntu, the matching nginx-dev package may provide the appropriate build environment.

The --with-compat option should not be treated as a guarantee of compatibility across arbitrary changes to internal NGINX structures.

This is intended as a documentation suggestion rather than a bug report against the connector itself.

Thank you!

Lingua principale
Perl
Stelle
1.9k
Fork
312
Merge medio
2g 22h
PR unite (30g)
4

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di owasp-modsecurity/ModSecurity-nginx

Tutte le issue di owasp-modsecurity/ModSecurity-nginx

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.