Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

apache denied access to sendmail: msg#00140

Subject: apache denied access to sendmail
Hello-

System: Fedora Core 3, current

I am using a trouble ticketing system written in PHP (phpSupport) which uses 
sendmail through
calling a perl script provided by the package. Every time phpSupport passes a 
mail request to
sendmail, this audit appears:

Sep 27 12:43:34 apache02 kernel: audit(1127839414.326:11): avc:  denied  { 
name_connect } for
pid=3948 comm="sendmail" dest=25 scontext=user_u:system_r:system_mail_t
tcontext=system_u:object_r:smtp_port_t tclass=tcp_socket

In /var/log/maillog, sendmail logs this for the email transaction:

Sep 27 12:43:34 apache02 sendmail[3948]: j8RGhYfY003948: from=apache, size=505, 
class=0,
nrcpts=1, msgid=<200509271643.j8RGhYfY003948@xxxxxxxxxxxxxxxxx>, 
relay=apache@localhost

Sep 27 12:43:34 apache02 sendmail[3948]: j8RGhYfY003948: to=aastaneh@xxxxxxxxx, 
ctladdr=apache
(48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30505, 
relay=[127.0.0.1] [127.0.0.1],
dsn=4.0.0, stat=Deferred: Permission denied

I have already submitted a bug report 
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=168874
and this problem was fixed in FC4... with no real note of fixing it for FC3.

I have already did a touch /.autorelabel and rebooted, but to no avail..

The only fix is to take the results of audit2allow and recompile policy (which 
worked on my
development box).
I am a little wary of building policy from policy-sources on a production 
machine in order to
insert dontaudit rules to stop this denial.. is it possible to build policy on 
a development
server (with the exact architecture) and transplant it into the production 
machine? If so- what
procedure must I follow?

Are there any other solutions?

Amin Astaneh




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe