Skip to content

Conversation

@liujed
Copy link

@liujed liujed commented Dec 2, 2025

When cleaning up, delete the contents of /tmp, but not /tmp itself.

Previously, the image ended up with /tmp having permission bits 0755. This caused issues with JMX when running as an unprivileged user: the user didn't have permission to create its hsperfdata directory under /tmp.

@buehner
Copy link
Member

buehner commented Jan 5, 2026

Nice catch. Thank you.

Maybe we should just change the cleanup line to rm -rf /tmp/*
This should also fix it, right? If you adjust your PR, I can merge. Thx

When cleaning up, delete the contents of /tmp, but not /tmp itself.
@liujed
Copy link
Author

liujed commented Jan 6, 2026

Thanks for the suggestion. That was the other option I considered, but I figured it wouldn't catch any dot-files/directories. Probably not a huge concern, though, so I've adjusted the PR and rebased on the latest from master.

@buehner buehner merged commit 5560959 into geoserver:master Jan 7, 2026
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