Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] SELinux: Problems with Database on a new Partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tuner23
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2006
Posts: 82

PostPosted: Wed Aug 21, 2013 3:38 pm    Post subject: [SOLVED] SELinux: Problems with Database on a new Partition Reply with quote

Hello,


i moved my database to a new partition and now i have problems starting the MySQL daemon.

i tried out:
Code:

[root@dark ~]# semanage fcontext -a -t mysqld_db_t "/data/mysql(/.*)?"
[root@dark ~]# restorecon -Rv /data/mysql


But it does not work due to the new mounted partition:
Code:

type=AVC msg=audit(1377089907.440:32411): avc:  denied  { getattr } for  pid=7721 comm="mysqld" path="/data" dev=sdb3 ino=2 scontext=unconfined_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=dir


I searched a lot, but couldn't find out how i can allow access for /dev/sdb3 to mysqld.
When i start the daemon without selinux everything works well..

Can someone help me out here?


Greets,
Antonis.


Last edited by tuner23 on Wed Aug 21, 2013 4:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
tuner23
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2006
Posts: 82

PostPosted: Wed Aug 21, 2013 4:37 pm    Post subject: Reply with quote

Ah, ok.

I solved it:
Code:

[root@dark ~]# semanage fcontext -a -t mysqld_db_t "/data"
[root@dark ~]# restorecon -Rv /data


Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum