LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-28-2007, 04:37 AM   #1
souldump
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
Smile Under SELINUX, my mysql cannot translate into mysqld_t domain !


I have my system with targeted policy enabled.
this is the related packages version I use.

selinux-policy-2.4.6-46.fc6
selinux-policy-targeted-2.4.6-46.fc6
selinux-policy-strict-2.4.6-46.fc6
libselinux-1.33.4-2.fc6
selinux-policy-devel-2.4.6-46.fc6
libselinux-devel-1.33.4-2.fc6

I installed my mysql with
./configure --prefix=/usr/local/mysql \
--sharedstatedir=/var/lib/mysql \
--localstatedir=/var/lib/mysql \
--with-charset=gb2312 \
--with-extra-charsets=big5,latin1 \
--without-debug \
--enable-assembler --with-openssl=yes \
--with-unix-socket-path=/tmp/mysql.sock \
--mandir=/usr/share/man

I can start mysql with /usr/local/mysql/bin/mysqld_safe &

Because I want run mysql in mysqld_t domain not unconfined_t. So
I changed the /usr/local/mysql/libexec/mysqld with mysqld_exec_t.
and copy the mysql.server to /etc/init.d
here is the output:
[souldump@localhost study]$ ls -Z /etc/init.d/mysql
-rwxr-xr-x root root system_ubject_r:initrc_exec_t /etc/init.d/mysql

I cannot start mysql service through
/etc/init.d/mysql start

I have tried the rpm package, It works fine.
how should I to make my self's work too?
what's wrong with my configuration?
Who can help me!

Last edited by souldump; 03-28-2007 at 04:38 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
selinux and mysql? samw5 Linux - Security 5 03-07-2006 09:46 PM
SELinux + Apache + MySQL + PHP SADANA Fedora 6 03-28-2005 10:06 PM
kppp not able to translate Domain Name to IP address Pico_01 Linux - General 1 02-25-2004 04:18 PM
Mysql - Postfix alias domain paulten Linux - Networking 0 11-03-2003 04:05 PM
mysql doesnt create a table for each domain PurpleMotion Linux - General 0 08-01-2003 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration