Bug 636356 - SELinux is preventing /usr/bin/perl "getattr" access on /usr/sbin/sendmail.sendmail.
Summary: SELinux is preventing /usr/bin/perl "getattr" access on /usr/sbin/sendma...
Keywords:
Status: CLOSED DUPLICATE of bug 588923
Alias: None
Product: Fedora
Classification: Fedora
Component: spacewalk-koan
Version: 13
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:76356c81dcd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-22 00:13 UTC by Frank Ybanez
Modified: 2010-09-27 15:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-27 15:29:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Ybanez 2010-09-22 00:13:51 UTC
Summary:

SELinux is preventing /usr/bin/perl "getattr" access on
/usr/sbin/sendmail.sendmail.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by gogo.pl. It is not expected that this access
is required by gogo.pl and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:spacewalk_monitoring_t:s0
Target Context                system_u:object_r:sendmail_exec_t:s0
Target Objects                /usr/sbin/sendmail.sendmail [ file ]
Source                        gogo.pl
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           perl-5.10.1-116.fc13
Target RPM Packages           sendmail-8.14.4-4.fc13
Policy RPM                    selinux-policy-3.7.19-54.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.34.7-56.fc13.i686.PAE #1 SMP
                              Wed Sep 15 03:27:15 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Tue 21 Sep 2010 05:11:41 PM MST
Last Seen                     Tue 21 Sep 2010 05:11:41 PM MST
Local ID                      c1f903dd-83c2-401b-87ab-0625678d7317
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1285114301.968:45): avc:  denied  { getattr } for  pid=1505 comm="gogo.pl" path="/usr/sbin/sendmail.sendmail" dev=dm-0 ino=4623475 scontext=system_u:system_r:spacewalk_monitoring_t:s0 tcontext=system_u:object_r:sendmail_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1285114301.968:45): arch=40000003 syscall=195 success=yes exit=0 a0=991bdd0 a1=97940c0 a2=c2aff4 a3=9794008 items=0 ppid=1504 pid=1505 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gogo.pl" exe="/usr/bin/perl" subj=system_u:system_r:spacewalk_monitoring_t:s0 key=(null)



Hash String generated from  catchall,gogo.pl,spacewalk_monitoring_t,sendmail_exec_t,file,getattr
audit2allow suggests:

#============= spacewalk_monitoring_t ==============
allow spacewalk_monitoring_t sendmail_exec_t:file getattr;

Comment 1 Daniel Walsh 2010-09-22 20:36:35 UTC
You need to add mta_send_mail(spacewalk_monitoring_t)

Comment 2 Jan Pazdziora 2010-09-27 15:29:20 UTC

*** This bug has been marked as a duplicate of bug 588923 ***


Note You need to log in before you can comment on or make changes to this bug.