Skip to content

Commit

Permalink
Fix permissions on /tmp/modsecurity directory on Apache image
Browse files Browse the repository at this point in the history
Following #227, http user cannot read or write /tmp/modsecurity.
Added /tmp/modsecurity to the list of directories owned by httpd
  • Loading branch information
mivek committed Jun 8, 2024
1 parent 24eec99 commit 1bbc582
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ RUN set -eux; \
/var/log/ \
/usr/local/apache2/ \
/etc/modsecurity.d \
/tmp/modsecurity \
/opt/owasp-crs

USER httpd
Expand Down
1 change: 1 addition & 0 deletions apache/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ RUN set -eux; \
/var/log/ \
/usr/local/apache2/ \
/etc/modsecurity.d \
/tmp/modsecurity \
/opt/owasp-crs

USER httpd
Expand Down

0 comments on commit 1bbc582

Please sign in to comment.