Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, I'm having a bit of a problem starting Mysql with SElinux. Everytime I try launching mysqld, SElinux starts screaming at me with a long list of rules. Can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! bonzocs's Avatar
    Join Date
    Jun 2006
    Location
    Cardiff Wales/UK
    Posts
    51

    SElinux and mysqld


    Hi All,

    I'm having a bit of a problem starting Mysql with SElinux. Everytime I try launching mysqld, SElinux starts screaming at me with a long list of rules. Can anyone advise how I can set a rule to allow mysqld ?

    Thanks

  2. #2
    Just Joined! bonzocs's Avatar
    Join Date
    Jun 2006
    Location
    Cardiff Wales/UK
    Posts
    51
    To follow up with a bit more detail I am using Fedora 9.

    Also when trying to start the daemon I get:

    /sbin/service mysqld start
    chown: changing ownership of `/var/log/mysqld.log': Operation not permitted
    chmod: changing permissions of `/var/log/mysqld.log': Operation not permitted
    chown: changing ownership of `/var/lib/mysql': Operation not permitted
    chmod: changing permissions of `/var/lib/mysql': Operation not permitted
    Timeout error occurred trying to start MySQL Daemon.
    And the log is saying:

    081006 01:23:44 mysqld started
    081006 1:23:44 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test
    081006 1:23:44 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test
    081006 1:23:44 [Warning] One can only use the --user switch if running as root

    081006 1:23:44 InnoDB: Operating system error number 13 in a file operation.
    InnoDB: The error means mysqld does not have the access rights to
    InnoDB: the directory.
    InnoDB: File name ./ibdata1
    InnoDB: File operation call: 'open'.
    InnoDB: Cannot continue operation.
    081006 01:23:44 mysqld ended
    I presume SElinux is responsible since it's throwing up loads of messages at teh same time for Mysql. It seems to be throwing a permission denied for everything MySQL tries to do.

    Is there a rule to permit the MySQL daemon access through SElinux?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •