Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1.14, 10.1(EOL)
-
None
-
linux with SELINUX=enforcing
Description
When using default settings cracklib tries to read the password database from /usr/share/cracklib/. When using the standard SELINUX profile mysqdl doesn't have access to that directory though.
Workarounds:
- add additional access rules:
semanage fcontext -a -t mysqld_etc_t "/usr/share/cracklib(/.*)?"
restorecon -Rv /usr/share/cracklib
- or copy cracklib dictionary to mysqld datadir and set cracklib_password_check_dictionary accordingly
Attachments
Issue Links
- relates to
-
MDEV-18374 SELinux breaks cracklib_password_check plugin
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | Documentation [ 10903 ] |
Fix Version/s | N/A [ 14700 ] |
Assignee | Ian Gilfillan [ greenman ] |
Component/s | Documentation [ 10903 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | N/A [ 14700 ] | |
Affects Version/s | 10.1 [ 16100 ] | |
Assignee | Ian Gilfillan [ greenman ] | Sergei Golubchik [ serg ] |
Description |
When using default settings cracklib tries to read the password database from /usr/share/cracklib/. When using the standard SELINUX profile mysqdl doesn't have access to that directory though.
Workarounds: * add additional access rules: semanage fcontext -a -t mysqld_etc_t "/usr/share/cracklib(/.*)?" restorecon -Rv /usr/share/cracklib * or copy cracklib dictionary to mysqld datadir and set cracklib_password_check_dictionary accordingly |
When using default settings cracklib tries to read the password database from /usr/share/cracklib/. When using the standard SELINUX profile mysqdl doesn't have access to that directory though.
Workarounds: * add additional access rules: {code:bash} semanage fcontext -a -t mysqld_etc_t "/usr/share/cracklib(/.*)?" restorecon -Rv /usr/share/cracklib {code} * or copy cracklib dictionary to mysqld datadir and set cracklib_password_check_dictionary accordingly |
Assignee | Sergei Golubchik [ serg ] | Ian Gilfillan [ greenman ] |
Component/s | Documentation [ 10903 ] |
Fix Version/s | N/A [ 14700 ] | |
Fix Version/s | 10.1 [ 16100 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Link |
This issue relates to |
Link | This issue relates to CDOC-2 [ CDOC-2 ] |
Workflow | MariaDB v3 [ 75852 ] | MariaDB v4 [ 150474 ] |
I'm not sure how it should be fixed. By not reading the passwords?
Assigning to serg for consideration.