Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[SOLVED] SELinux: Problems with Database on a new Partition

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
tuner23
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Thu May 18, 2006 5:42 pm

[SOLVED] SELinux: Problems with Database on a new Partition

  • Quote

Post by tuner23 » Wed Aug 21, 2013 3:38 pm

Hello,


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

i tried out:

Code: Select all

[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: Select all

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.
Top
tuner23
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Thu May 18, 2006 5:42 pm

  • Quote

Post by tuner23 » Wed Aug 21, 2013 4:37 pm

Ah, ok.

I solved it:

Code: Select all

[root@dark ~]# semanage fcontext -a -t mysqld_db_t "/data"
[root@dark ~]# restorecon -Rv /data
Thanks.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic