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

Less loose permission bits for /var/lib/mysql inside container #94

Merged
merged 1 commit into from
Sep 11, 2015

Conversation

hhorak
Copy link
Member

@hhorak hhorak commented Sep 11, 2015

As mentioned in #92 (comment),
using 0777 for /var/lib/mysql is not very safe. But we can allow to run the image
as arbitrary user even with 0770 bits, by setting root group as owner for /var/lib/mysql.

That works because when only specifying user (e.g. -u 1000), group 0 is used.

As mentioned in sclorg#92 (comment),
using 0777 for /var/lib/mysql is not very safe, but we can allow to run the image
as arbitrary user even without 0777 bits, by owning /var/lib/mysql by mysql.0.

That works because when only specifying user, group 0 is used.
@openshift-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@mfojtik
Copy link
Contributor

mfojtik commented Sep 11, 2015

[test]

bparees added a commit that referenced this pull request Sep 11, 2015
Less loose permission bits for /var/lib/mysql inside container
@bparees bparees merged commit f44b12d into sclorg:master Sep 11, 2015
hhorak pushed a commit to hhorak/mysql-container that referenced this pull request May 23, 2018
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.

4 participants