Skip to content
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

Fix /tmp/modsecurity/* directories permissions so nginx workers can write to them #300

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

isavcic
Copy link
Contributor

@isavcic isavcic commented Nov 4, 2024

Hello,

We've noticed these errors in the logs:

[173049359014.027868] [/private/api/v1/fileUpload] [1] Multipart: Failed to create file: /tmp/modsecurity/upload/20241101-203950-173049359014.027868-file-XXXXXX
[173049359014.027868] [/private/api/v1/fileUpload] [1] Multipart: Final boundary missing.

The important bit is Multipart: Failed to create file, while Multipart: Final boundary missing is the consequence of that and is not the cause, but the effect of the issue.

This PR changes the ownership on /tmp/modsecurity from root:root to nobody:nobody recursively, so nginx workers running under that user can write to the directories within /tmp/modsecurity.

@theseion theseion merged commit f088c94 into coreruleset:main Nov 7, 2024
6 checks passed
@theseion
Copy link
Contributor

theseion commented Nov 7, 2024

Thanks!

@theseion
Copy link
Contributor

theseion commented Nov 7, 2024

Release is building now. The new image will be available in a couple of hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants