Skip to main content

New EA4, modruid2 apache jailshell and modsec issue

Comments

8 comments

  • cPanelMichael
    Hello, Internal case EA-4835 is open to address reports of error messages like this when enabling both Mod_Ruid2 and Mod_Security:
    ModSecurity: Audit log: Failed to create subdirectories: /etc/apache2/logs/modsec_audit
    The current workaround is to disable Mod_Security or Mod_Ruid2. I'll provide more information on the status of this case as it becomes available. Thank you.
    0
  • Recifier
    Excellent, thank you.
    0
  • Recifier
    Looks like this is fixed in 58.0.30, although I had to switch all users to normal shell then back to jailshell for it to take effect.
    0
  • linux4me
    Looks like this is fixed in 58.0.30, although I had to switch all users to normal shell then back to jailshell for it to take effect.

    Which part is fixed?
    0
  • cPanelMichael
    Which part is fixed?

    Hello, The resolution for this issue was published with cPanel version 58.0.30: Fixed case CPANEL-8332: ModSecurity now logs events for jailshell users in EA4. This allows ModSecurity to log correctly on systems using EasyApache 4 and cPanel's experimental Apache jailshell. Thank you.
    0
  • linux4me
    Did it also fix the issue with ModSecurity rules that use initcol, setsid, and setuid not being able to write to the DBM files in /var/cpanel/secdatadir when Apache jailshell and mod_ruid2 are in use?
    0
  • cPanelMichael
    New Did it also fix the issue with ModSecurity rules that use initcol, setsid, and setuid not being able to write to the DBM files in /var/cpanel/secdatadir when Apache jailshell and mod_ruid2 are in use?

    No, I believe the issue you are referring to is discussed at: ModSecurity + MPM ITK compatibility - inconsistent documentation Thank you.
    0
  • linux4me
    Thanks, Michael. The specific post in that thread that mentions what I was inquiring about is this one. What I take home from reading that thread and others is that with EA4, mod_security and mod_ruid2 with the Tweak Settings jailshell Apache are still not completely compatible, even with cPanel 58.0.30, because ModSecurity rules that attempt persistent storage using DBM will fail, though with 58.0.30 the issue with ModSecurity not being able to write to the audit logs is fixed. The discussion over at GitHub makes it sound like the folks at ModSecurity are working on a fix for the persistent storage issue that may be included in ModSecurity 3.
    0

Please sign in to leave a comment.