LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 06-29-2009, 08:40 AM   #1
mail2mphani
Member
 
Registered: Jan 2009
Location: INDIA
Distribution: REDHAT
Posts: 64

Rep: Reputation: 15
squirrelmail selinux problum


i installed dovecot and sendmail

those are working properly
i installed squirreal mail and try to sent the the mail to the other user a selinux error is comming.


The selinux error is attached to this Thread.
any one give the solution to this
Attached Images
File Type: png Screenshot.png (97.6 KB, 5 views)
 
Old 06-29-2009, 09:27 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
You'll need to use the 'chcon' to change the context of the eventpoll file (can't see the location). 'man chcon' to see the usage.

I can't tell what context to make eventpoll so you might want to check /var/log/messages for the same sealert - it will list a command line you can run to display the console version of the error you attached so we can see all the information in the error. it will be something like 'sealert .....'
 
Old 06-30-2009, 08:37 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 20,982
Blog Entries: 44

Rep: Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235
Quote:
Originally Posted by Admiral Beotch View Post
You'll need to use the 'chcon' to change the context of the eventpoll file
How did you come to that conclusion?
 
Old 06-30-2009, 08:40 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 20,982
Blog Entries: 44

Rep: Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235
Quote:
Originally Posted by mail2mphani View Post
i installed squirreal mail and try to sent the the mail to the other user a selinux error is comming.
Sendmail wants to read a file in the httpd_t context. If it's not a file containing privileged information then reading in this context seems OK. By comparision anything unprivileged wanting to read say /etc/shadow, or anything wanting execstack, execmem or execheap rights is NOT OK (http://people.redhat.com/drepper/selinux-mem.html for the exec.* stuff). First thing to do is check for available booleans that might help. Try 'getsebool -a | egrep -ie "(http|mail|squir)" '. If there's none, build a local policy file: 'echo "avc: denied { read } for comm="sendmail" dev=eventpollfs egid=51 euid=48 exe="/usr/sbin/sendmail.sendmail" exit=0 fsgid=51 fsuid=48 gid=48 items=0 path="eventpoll:[7045]" pid=2674 scontext=system_u:system_r:system_mail_t:s0 sgid=51 subj=system_u:system_r:system_mail_t:s0 suid=48 tclass=file tcontext=system_u:system_r:httpd_t:s0 tty=(none) uid=48"|audit2allow -M squirreleventpollfs && semodule -i squirreleventpollfs.pp'. This should add a rule "allow system_mail_t httpd_t:file read;".


Quote:
Originally Posted by mail2mphani View Post
any one give the solution to this
Next time cut out the crossposting and be polite. Saying "please" doesn't hurt and a question ends in a question mark.

Last edited by unSpawn; 06-30-2009 at 08:45 AM. Reason: //speeling mystyques.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squirrelmail SElinux Default preference file not found or not readable terek Linux - Security 11 02-04-2011 11:26 AM
catdoc problum sriphp Linux - Software 5 05-09-2009 06:12 AM
DHCP Problum mail2mphani Linux - Server 4 03-25-2009 05:15 AM
Suse 10.0 installation problum!!!!! hep3005 Suse/Novell 1 04-11-2006 08:25 AM
SELinux cause Squirrelmail to fail cojo Linux - Security 2 11-20-2005 05:51 PM


All times are GMT -5. The time now is 12:41 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration