Bug 154331
Summary: | mysqld fails to start | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jonathan Eskritt <jeskritt> |
Component: | selinux-policy-targeted | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | athlon | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-04-11 11:03:51 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jonathan Eskritt
2005-04-10 05:28:10 UTC
The above is from my desktop. The error from the mythtv box is: audit(1113094517.922:0): avc: denied { read } for pid=8181 exe=/usr/libexec/mysqld name=host.frm dev=hda2 ino=656744 scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t tclass=file it looks farily similar, but there are some differences. I don't know anything about selinux so I'm not sure if the differences matter. Thanks, Jonathan I suspect the files (or perhaps directories) that need to be relabelled are not listed in the mysql RPM because they are files created after the install. If you want to try a blanket sweep relabel try doing touch /.autorelabel then rebooting. That seems to have done the trick. both systems MySQL servers are starting properly on reboot. There should be a more covienent/automatic way though than to relabel the whole FS. Perhaps changes that break a daemon could come with a script to fix things? Thanks for the help Jonathan You should be able to restorecon the files. I would go to the directories that these files are in and run a restorecon -R -v /var/lib Or something and see if the file context changes. You should never disable selinux if you intend to go back, since you will need to relabel it. You can run in permissive mode which will allow things to run, until you fix the labeleing problem. |