-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHEL package does not have working JSON support #1779
Comments
Hi @nmiller12, I didn't had the chance of testing this on my own, but the problem is really the absence of the YAJL library there. Other than the dependencies list, I've checked the spec file for mod_security-2.9.2-1.el7.src.rpm and it's missing YAJL:
This might be due the missing yajl-devel package on RHEL, but CentOS has such package and both the RPM dependency and the spec file for this package is also missing YAJL, so this might be an error or it was kept this way for consistency between CentOS and RHEL. Unfortunately, we don't have much control on how the packages are delivered by the distros, but if you would like to get this sorted and support the community I would highly encourage you to get in touch with the distro packager in order to get this fixed. I think for this package in particular, based on the package changelog, it could be Daniel Kopecek [email protected], but maybe @bostrt could also help :) If support from our ModSecurity's side is needed let us know and we will happily help :) |
@nmiller12 there are two separate issues for this filed in RH's bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1372797 (RHEL 6) The RHEL 6 one was closed, check the first reply for why. I'll defer to @dkopecek regarding the RHEL 7 bz closure. |
I should also mention that you should be able to compile mod_security on RHEL 7 with JSON support enabled since there is a yajl-devel 2.x available. |
Thanks for the quick reply @victorhora. I will check with Daniel Kopecek to see if this issue can be resolved. From the links bostrt has added, hope of a fix is not high: |
Ok. Closing this one based on @bostrt and @nmiller12 comments. Thanks @bostrt! |
I have heard back from Daniel Kopecek who confirms that the modsecurity RHEL package will not have JSON support because the yajl project is no longer maintained. |
It appears that YAJL is still used in ModSecurity v3, since this exists: https://github.com/SpiderLabs/ModSecurity/blob/v3/master/build/yajl.m4 Are there any plans to eliminate the use of YAJL in ModSecurity since its not available on RHEL/Centos? Or, is the modsecurity v3 library built in such a way that if simply install YAJL ourselves on our Centos instance, it will start using it? (i.e., we don't have to recompile modsecurity v3 ourselves)? If so, is there any documentation about this? |
Hi,
I have been trying to get the recently released RHEL modsecurity 2.9 package (https://access.redhat.com/errata/RHBA-2018:0908) to process JSON requests but am receiving the error: Message: JSON support was not enabled.
I believe this is because the YAJL2 library is not installed by the package. Possibly because there does not seem to be a yajl-devel package available for RHEL.
I believe this is also an issue with the Amazon linux package.
Does anyone else have this issue?
Nick
The text was updated successfully, but these errors were encountered: