All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Rongdong Lu <qdmudong@hotmail.com>
Cc: SELinux@tycho.nsa.gov
Subject: Re: I am add a custom rule, know how 2 do te file, what about fc file, please help
Date: Mon, 27 Mar 2006 13:51:54 -0500	[thread overview]
Message-ID: <4428344A.6010508@redhat.com> (raw)
In-Reply-To: <BAY22-F25ADF3AA0F5941B05A0CA3C0DD0@phx.gbl>

Rongdong Lu wrote:
> Hi, List,
>
> Selinux has been driving me real crazy for the last serveral weeks, 
> now finally I'am getting some clue.
>
> Here's a problem i am having now. I have a centos4 server, with 
> selinux turned on, I can't use php to send out mail. I am using 
> selinux-policy-targeted-1.17.30-2.126. I am trying to add a custom 
> rule the first time.
>
> here is the error messge in messages log:
>
> Mar 25 20:19:14 example kernel: audit(1143335954.882:36): avc:  
> denied  { execute } for  pid=10036 comm="sh" name="sendmail" dev=sda5 
> ino=1228853 scontext=root:system_r:httpd_sys_script_t 
> tcontext=system_u:object_r:var_t tclass=file
> Mar 25 20:19:14 example kernel: audit(1143335954.882:37): avc:  
> denied  { getattr } for  pid=10036 comm="sh" name="sendmail" dev=sda5 
> ino=1228853 scontext=root:system_r:httpd_sys_script_t 
> tcontext=system_u:object_r:var_t tclass=file
>
Looks like you need to change the context of a script out on var_t?  try
chcon -t httpd_sys_script_t PATHTOSCRIPT?

> I know I can use audit2allow to get the rule to add in to a te file, 
> but what do I add to the fc file? I couldn't find which is the command 
> trys to access sendmail, a process with that pid one didn't exist 
> after the error message is generated.
>
> any advice is appeciated, thanks in advance, guys
>
> Ron
>
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from 
> McAfee® Security. 
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -- 
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to 
> majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.




--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  parent reply	other threads:[~2006-03-27 18:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-26  1:38 I am add a custom rule, know how 2 do te file, what about fc file, please help Rongdong Lu
2006-03-27 14:56 ` Serge E. Hallyn
2006-03-28 12:15   ` I am add a custom rule, know how 2 do te file, what about fc file, please he Rongdong Lu
2006-03-27 18:51 ` Daniel J Walsh [this message]
2006-03-27 19:09 ` I am add a custom rule, know how 2 do te file, what about fc file, please help Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4428344A.6010508@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=SELinux@tycho.nsa.gov \
    --cc=qdmudong@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.