Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th July 2007, 08:18 AM
Alex_Saf Offline
Registered User
 
Join Date: Dec 2006
Posts: 2
Problem with administration SELinux in Fedora 7

Hello!

At me a problem with administration SELinux in Fedora 7. In my opinion, there are not enough boolean-values in comparison with Fedora Core 6. On an example, completely there are no values of a kind <daemon_name> _disable_trans which are responsible for on/off-switching of protection for any service.

So in particular, at me a problem with access to DB MySQL of a demon postfix in my post system. And disable protection SELinux for mysqld I cannot. It is possible to disconnect only SELinux entirely.

I ask to help.

Error log:
Jul 23 16:59:37 prima1 kernel: audit(1185195577.168:78): avc: denied { search } for pid=2252 comm="smtpd" name="mysql" dev=dm-6 ino=10879009 scontext=system_u:system_rostfix_sm
tpd_t:s0 tcontext=system_ubject_r:mysqld_db_t:s0 tclass=dir
Reply With Quote
  #2  
Old 3rd September 2008, 09:55 PM
domg472 Offline
SELinux Contributor
 
Join Date: May 2008
Posts: 621
You can allow this access however i suspect that postfix may require more access:

1. make sure the system is safe and put selinux into permissive mode.

/usr/sbin/setenforce 0

2. start with a clean /var/log/audit/audit.log

echo "" > /var/log/audit/audit.log

3. reproduce your issue with postfix. try to do whatever it requires.

(run postfix)

4. once done put the system back in enforcing mode.

/usr/sbin/setenforce 1

5. now collect all the new avc denials and create a new module.

/sbin/ausearch -m avc -ts today | audit2allow -M mypostfix

6. review your new generated module (mypostfix.te file)

less mypostfix.te

7. if satisfied load the new module into the system

/usr/sbin/semodule -i mypostfix.pp

Note: Fedora Core 7 is "end of life". This means that you will not receive any new policy improvements from fedora. To stay up to date with policy it is best to upgrade.

Last edited by domg472; 3rd September 2008 at 10:00 PM.
Reply With Quote
  #3  
Old 3rd September 2008, 11:31 PM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
domg472, Alex_Saf posted that in 07 ( 2007-07-24, 03:18 AM)
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
Reply

Tags
administration, fedora, problem, selinux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem configuring SElinux using system-config-selinux GUI majdi Servers & Networking 0 6th September 2008 11:33 AM
Fedora 8 Linux Systems Administration Pages kriehn Guides & Solutions (No Questions) 5 29th February 2008 06:17 AM
Fedora 7: SELinux and ping problem greno Using Fedora 4 3rd August 2007 02:13 AM
New Fedora Core/Fedora Linux Systems Administration Pages kriehn Guides & Solutions (No Questions) 3 15th June 2007 06:14 AM


Current GMT-time: 22:01 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat