Is there a way to allow MySQL innodb access to the /tmp directory without undoing the securing. The errors i'm getting (when I try to get MySQL to access the /tmp directory) are:
mysql.log
CODE
060408 22:14:50 mysqld started
/usr/libexec/mysqld: Can't read dir of '/tmp/' (Errcode: 13)
/usr/libexec/mysqld: Can't create/write to file '/tmp/ibUl3jqS' (Errcode: 13)
060408 22:14:50 InnoDB: Error: unable to create temporary file; errno: 13
060408 22:14:50 [ERROR] Can't init databases
060408 22:14:50 [ERROR] Aborting
/usr/libexec/mysqld: Can't read dir of '/tmp/' (Errcode: 13)
/usr/libexec/mysqld: Can't create/write to file '/tmp/ibUl3jqS' (Errcode: 13)
060408 22:14:50 InnoDB: Error: unable to create temporary file; errno: 13
060408 22:14:50 [ERROR] Can't init databases
060408 22:14:50 [ERROR] Aborting
messages:
CODE
Apr 8 22:14:50 rasgas01 kernel: audit(1144530890.738:17): avc: denied { read } for pid=24125 comm="mysqld" name="/" dev=loop0 ino=2 scontext=root:system_r:mysqld_t tcontext=system_u:object_r:file_t tclass=dir
Apr 8 22:14:50 rasgas01 kernel: audit(1144530890.775:18): avc: denied { search } for pid=24125 comm="mysqld" name="/" dev=loop0 ino=2 scontext=root:system_r:mysqld_t tcontext=system_u:object_r:file_t tclass=dir
Apr 8 22:14:50 rasgas01 kernel: audit(1144530890.775:18): avc: denied { search } for pid=24125 comm="mysqld" name="/" dev=loop0 ino=2 scontext=root:system_r:mysqld_t tcontext=system_u:object_r:file_t tclass=dir
CODE
drwxrwxrwt 5 root root 1024 Apr 8 10:24 tmp
CODE
/usr/tmpDSK 496M 11M 460M 3% /tmp
CODE
[root@rasgas01 ~]# ls -l /usr/tmpDSK
-rw-r--r-- 1 root root 536870912 Apr 7 21:26 /usr/tmpDSK
-rw-r--r-- 1 root root 536870912 Apr 7 21:26 /usr/tmpDSK
I suppose my question boils down to can you set the mysql tmp directory (I couldn't find a config directive) or is there "trick" that I don't know
Any pointers would be great!