FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora SELinux Support

 
 
LinkBack Thread Tools
 
Old 02-13-2008, 09:07 PM
"Stanisław T. Findeisen"
 
Default problems with sending emails from Apache

Hello, I am using Fedora 7 x86_64, have these packages installed:

selinux-policy-2.6.4-70.fc7
selinux-policy-targeted-2.6.4-70.fc7

and get these errors:

syslog:

Feb 13 18:18:12 srv-1 kernel: audit(1202923092.221:5): avc: denied {
search } for pid=8423 comm="sendmail" name="postfix" dev=sda1
ino=4935485 scontext=system_u:system_r:httpd_t:s0
tcontext=system_ubject_rostfix_etc_t:s0 tclass=dir


Apache error log:

[Wed Feb 13 18:15:02 2008] [error] [client 84.10.17.54] File does not
exist: /var/www/html/gnu-linux/favicon.ico

sendmail: fatal: open /etc/postfix/main.cf: Permission denied
[Wed Feb 13 20:27:16 2008] [info] [client 84.10.17.54] (70007)The
timeout specified has expired: core_output_filter: writing data to the
network


I think that occured when PHP application tried to send email from
within Apache HTTP server.


STF

--
fedora-selinux-list mailing list
fedora-selinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-selinux-list
 
Old 02-13-2008, 09:16 PM
Daniel J Walsh
 
Default problems with sending emails from Apache

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stanisław T. Findeisen wrote:
> Hello, I am using Fedora 7 x86_64, have these packages installed:
>
> selinux-policy-2.6.4-70.fc7
> selinux-policy-targeted-2.6.4-70.fc7
>
> and get these errors:
>
> syslog:
>
> Feb 13 18:18:12 srv-1 kernel: audit(1202923092.221:5): avc: denied {
> search } for pid=8423 comm="sendmail" name="postfix" dev=sda1
> ino=4935485 scontext=system_u:system_r:httpd_t:s0
> tcontext=system_ubject_rostfix_etc_t:s0 tclass=dir
>
> Apache error log:
>
> [Wed Feb 13 18:15:02 2008] [error] [client 84.10.17.54] File does not
> exist: /var/www/html/gnu-linux/favicon.ico
> sendmail: fatal: open /etc/postfix/main.cf: Permission denied
> [Wed Feb 13 20:27:16 2008] [info] [client 84.10.17.54] (70007)The
> timeout specified has expired: core_output_filter: writing data to the
> network
>
> I think that occured when PHP application tried to send email from
> within Apache HTTP server.
>
> STF
>
> --
> fedora-selinux-list mailing list
> fedora-selinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
Try

setsebool -P httpd_can_sendmail=1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkezbEkACgkQrlYvE4MpobNzTQCfTZUta+WObt Ob1s0B9eFpuj+g
i5YAn1wQFtuOBUo/omhm2+ZROdM71yqI
=teDZ
-----END PGP SIGNATURE-----

--
fedora-selinux-list mailing list
fedora-selinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-selinux-list
 

Thread Tools




All times are GMT. The time now is 08:56 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org