Skip to content

Fix arbitrary user support on oracle-linux based images #889

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

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

yosifkit
Copy link
Member

@yosifkit yosifkit commented Jul 12, 2022

The rpm package has different opinions on the mode of /var/run/mysqld, so we have to adjust permissions after install.

When testing running as an arbitrary user, I also found that the my.cnf in 5.7 has a log-error=/var/log/mysqld.log line which causes startup to break; so this should hopefully fix the missing log level in #880 since they have likely been going to a file 😞 🙈

Fixes #887 resolves #880

Comment on lines +105 to +108
# comment out a few problematic configuration values
find /etc/my.cnf /etc/mysql/ -name '*.cnf' -print0 \
| xargs -0 grep -lZE '^(bind-address|log)' \
| xargs -rt -0 sed -Ei 's/^(bind-address|log)/#&/'; \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines are copied from the Debian Dockerfile even though we don't have a bind-address in the cnf file.

@tianon tianon merged commit bbcfaea into docker-library:master Jul 12, 2022
@tianon tianon deleted the oracle-arbitrary-user-fix branch July 12, 2022 23:01
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jul 12, 2022
Changes:

- docker-library/mysql@bbcfaea: Merge pull request docker-library/mysql#889 from infosiftr/oracle-arbitrary-user-fix
- docker-library/mysql@48f07e3: Fix arbitrary user support on oracle-linux based images
BaurzhanSakhariev pushed a commit to crate/official-images that referenced this pull request Jul 18, 2022
Changes:

- docker-library/mysql@bbcfaea: Merge pull request docker-library/mysql#889 from infosiftr/oracle-arbitrary-user-fix
- docker-library/mysql@48f07e3: Fix arbitrary user support on oracle-linux based images
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.

can't create lock file /var/run/mysqld/mysqlx.sock.lock Loglevel behaviour of mysql image changed
2 participants