Tom Diehl on 18 Sep 2009 05:53:02 -0700

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] centos mysql problem (fwd)

On Thu, 17 Sep 2009, Sean C. Sheridan wrote:

> Yes Tom,
> That fixed it:
>> Are you running with selinux in enforcing?
> Yes
> setenforce 0
> allows the service to start as expected.


> Audit log says:
> type=AVC msg=audit(1253203770.505:128): avc:  denied  { read } for
> pid=10483 comm="mysqld" name="" dev=dm-0 ino=4846519
> scontext=user_u:system_r:mysqld_t:s0
> tcontext=system_u:object_r:file_t:s0 tclass=file

Sorry, I do not know enough about selinux to understand the above.

I would suggest you enable setroubleshoot and run the log entry through

You should see an entry in /var/log/messages that looks something like:
setroubleshoot: SELinux is preventing the httpd from using potentially mislabeled files /var/cache/samba/gencache.tdb (samba_var_t). For complete SELinux messages. run sealert -l 005bf6fe-17d4-44cf-b9de-5d1643cba5f6

If you run the sealert command the log file gives you, you might get a clue
what is going on.

Hope this helps,


Tom Diehl      Spamtrap address

Philadelphia Linux Users Group         --
Announcements -
General Discussion  --