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

Ensure permissions on mysql-logfile are correct chokes when log_error is set to stderr #673

Closed
whysthatso opened this issue May 22, 2023 · 1 comment · Fixed by #674
Closed

Comments

@whysthatso
Copy link
Contributor

- name: Ensure permissions on mysql-logfile are correct

i'm not sure how the setting got into the database as i am running on Percona mysqldb version 8.32.
So this might be a version problem, however, i was able to fix it by adding another condition to the when line:

when: item is defined and item != "" and item != "stderr"

all other hardening changes seem to work fine.

would that be acceptable for a pr? or am i missing something here?

@rndmh3ro
Copy link
Member

Nice find!

A PR would be great. We should also exclude stdout:

  when:
    - item is defined
    - item != ""
    - item != "stderr"
    - item != "stdout"

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 a pull request may close this issue.

2 participants