Bug 545083 - SELinux is preventing /usr/sbin/sendmail.postfix "execute" access on /usr/sbin/sendmail.postfix.
Summary: SELinux is preventing /usr/sbin/sendmail.postfix "execute" access on /usr/sbi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:ae1369e6b46...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-07 14:35 UTC by Wolfgang Rupprecht
Modified: 2009-12-16 01:07 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-56.fc12
Clone Of:
Environment:
Last Closed: 2009-12-16 01:07:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Wolfgang Rupprecht 2009-12-07 14:35:08 UTC
Summary:

SELinux is preventing /usr/sbin/sendmail.postfix "execute" access on
/usr/sbin/sendmail.postfix.

Detailed Description:

[sendmail has a permissive type (asterisk_t). This access was not denied.]

SELinux denied access requested by sendmail. It is not expected that this access
is required by sendmail 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:asterisk_t:s0
Target Context                system_u:object_r:sendmail_exec_t:s0
Target Objects                /usr/sbin/sendmail.postfix [ file ]
Source                        sendmail
Source Path                   /usr/sbin/sendmail.postfix
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           postfix-2.6.5-2.fc12
Target RPM Packages           postfix-2.6.5-2.fc12
Policy RPM                    selinux-policy-3.6.32-55.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.6-145.fc12.x86_64 #1
                              SMP Sat Nov 21 15:57:45 EST 2009 x86_64 x86_64
Alert Count                   3
First Seen                    Sun 06 Dec 2009 02:48:27 PM PST
Last Seen                     Sun 06 Dec 2009 02:48:27 PM PST
Local ID                      a14c19c4-8fe0-4836-8d0b-7a1d1e6f59a1
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260139707.242:43698): avc:  denied  { execute } for  pid=9862 comm="sh" name="sendmail.postfix" dev=dm-3 ino=143064 scontext=system_u:system_r:asterisk_t:s0 tcontext=system_u:object_r:sendmail_exec_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1260139707.242:43698): avc:  denied  { read open } for  pid=9862 comm="sh" name="sendmail.postfix" dev=dm-3 ino=143064 scontext=system_u:system_r:asterisk_t:s0 tcontext=system_u:object_r:sendmail_exec_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1260139707.242:43698): avc:  denied  { execute_no_trans } for  pid=9862 comm="sh" path="/usr/sbin/sendmail.postfix" dev=dm-3 ino=143064 scontext=system_u:system_r:asterisk_t:s0 tcontext=system_u:object_r:sendmail_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1260139707.242:43698): arch=c000003e syscall=59 success=yes exit=0 a0=1592660 a1=1591570 a2=1591150 a3=18 items=0 ppid=9861 pid=9862 auid=4294967295 uid=488 gid=471 euid=488 suid=488 fsuid=488 egid=471 sgid=471 fsgid=471 tty=(none) ses=4294967295 comm="sendmail" exe="/usr/sbin/sendmail.postfix" subj=system_u:system_r:asterisk_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-55.fc12,catchall,sendmail,asterisk_t,sendmail_exec_t,file,execute
audit2allow suggests:

#============= asterisk_t ==============
allow asterisk_t sendmail_exec_t:file { read execute open execute_no_trans };

Comment 1 Wolfgang Rupprecht 2009-12-07 14:37:08 UTC
This appears to be caused by asterisk sending an email notification for a voicemail message.

Comment 2 Daniel Walsh 2009-12-07 20:09:08 UTC
Adding 
optional_policy(`
	mta_send_mail(asterisk_t)
')

Fixed in selinux-policy-3.6.32-56.fc12.noarch

Comment 3 Fedora Update System 2009-12-07 22:55:06 UTC
selinux-policy-3.6.32-56.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-56.fc12

Comment 4 Fedora Update System 2009-12-10 04:20:33 UTC
selinux-policy-3.6.32-56.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12990

Comment 5 Fedora Update System 2009-12-16 01:06:03 UTC
selinux-policy-3.6.32-56.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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