LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Thread Tools
Old 06-29-2009, 08:40 AM   #1
mail2mphani
Member
 
Registered: Jan 2009
Location: INDIA
Distribution: REDHAT
Posts: 44
Thanked: 0
squirrelmail selinux problum


[Log in to get rid of this advertisement]
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)
mail2mphani is offline     Reply With Quote
Old 06-29-2009, 09:27 AM   #2
Admiral Beotch
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 670
Blog Entries: 3
Thanked: 104
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 .....'
Admiral Beotch is offline     Reply With Quote
Thanked by:
Old 06-30-2009, 08:37 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,716
Blog Entries: 30
Thanked: 283
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?
unSpawn is offline     Reply With Quote
Old 06-30-2009, 08:40 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,716
Blog Entries: 30
Thanked: 283
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.
unSpawn is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
catdoc problum sriphp Linux - Software 5 05-09-2009 06:12 AM
DHCP Problum mail2mphani Linux - Server 4 03-25-2009 05:15 AM
Squirrelmail SElinux Default preference file not found or not readable terek Linux - Security 9 03-25-2008 12:44 PM
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 11:23 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration