Skip to content

Conversation

@justfalter
Copy link
Contributor

Hi there,
First, I'd like to say that I greatly appreciate your creating this docker image for Minecraft.

I'm sending this pull request as I had noticed that the Minecraft process was running as root, though it does not require such privileges. See the principle of least privilege. There has been at least one exploit that allowed someone with root privs within a docker container to escalate to root privs on the host system.

All that I've done is 1) add a 'minecraft' user, 2) ensure that user owns /data, and 3) execute the original startup script as the minecraft user.

thanks!

- Create 'minecraft' user account within image.
- Drop to 'minecraft' user before starting server.
itzg added a commit that referenced this pull request Nov 1, 2014
Drop privileges before starting server
@itzg itzg merged commit 55cffbb into itzg:master Nov 1, 2014
@itzg
Copy link
Owner

itzg commented Nov 1, 2014

I had explored the use of docker run -u <>, but I like the compromise of your solution.

Thanks.

(Sorry for the double comment here and your commit :) )

@itzg
Copy link
Owner

itzg commented Nov 1, 2014

...and built (image ID 39e3d30e0919)

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