Hi,

I have a problem of sending attachment out from sm 1.4.3a when selinux is
enforced.  My system:

os:     RedHat FC3 linux, kernel 2.6.9, selinux enforced, iptables enabled
web:    httpd-2.0.52-3.1 (apache)
sendmail:       8.13.1-2
squirrelmail:   1.4.3a-6.FC3 configured with smtp, not sendmail
php:    4.3.10-3.2

I try to attach a file to send out: click Browse to find a file, then
click Add.  Nothing happends -- no file is listed as attached file.  If I
just send the email out, the receiver does not see any attachment.  The
system log shows:

...
Jan 25 15:09:25 pippo kernel: audit(1106687365.076:0): avc:  denied  {
write } for  pid=23123 exe=/usr/sbin/httpd name=attach dev=hda3 ino=470516
scontext=root:system_r:httpd_t tcontext=system_u:object_r:var_spool_t
tclass=dir
...

If I disable selinux, then no problem at all.  The default sm attachment
dir is as in config.php:

$attachment_dir           = '/var/spool/squirrelmail/attach/';

and it's mode is:

# ls -lZ /var/spool/squirrelmail/
drwx------  apache   apache   system_u:object_r:var_spool_t    attach

Is there anything wrong?  How to make it working in the environment of
selinux enforced in fc3 linux?

Thanks!

Hongwei Li


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to