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

Đang mở
#419 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@airween đang làm issue này rồi.

Từ ngày 25/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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!

Ngôn ngữ chính
Perl
Star
1.9k
Fork
312
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của owasp-modsecurity/ModSecurity-nginx

Tất cả issue của owasp-modsecurity/ModSecurity-nginx

Issue tương tự

Thêm issue về Perl

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.