Bug 541729

Summary: SELinux is preventing /usr/sbin/asterisk "setcap" access.
Product: [Fedora] Fedora Reporter: Bennie Sexton <bsexton>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: bsexton, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:99928431bea77a47d82abd5d5cb10c7686106a45077f60d8e97694fce6bfebd9
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-27 10:32:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bennie Sexton 2009-11-26 21:07:44 UTC
Summary:

SELinux is preventing /usr/sbin/asterisk "setcap" access.

Detailed Description:

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

SELinux denied access requested by asterisk. It is not expected that this access
is required by asterisk 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                unconfined_u:system_r:asterisk_t:s0
Target Context                unconfined_u:system_r:asterisk_t:s0
Target Objects                None [ process ]
Source                        asterisk
Source Path                   /usr/sbin/asterisk
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           asterisk-1.6.1.9-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-46.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.5-127.fc12.x86_64 #1
                              SMP Sat Nov 7 21:11:14 EST 2009 x86_64 x86_64
Alert Count                   1
First Seen                    Thu 26 Nov 2009 10:31:48 AM EST
Last Seen                     Thu 26 Nov 2009 10:31:48 AM EST
Local ID                      1b5d133e-b8ae-44be-8337-f9fe6d223b5b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1259249508.243:40831): avc:  denied  { setcap } for  pid=29219 comm="asterisk" scontext=unconfined_u:system_r:asterisk_t:s0 tcontext=unconfined_u:system_r:asterisk_t:s0 tclass=process

node=(removed) type=SYSCALL msg=audit(1259249508.243:40831): arch=c000003e syscall=126 success=yes exit=0 a0=97bb14 a1=97bb1c a2=2 a3=3b31f27900 items=0 ppid=29218 pid=29219 auid=0 uid=490 gid=477 euid=490 suid=490 fsuid=490 egid=477 sgid=477 fsgid=477 tty=pts0 ses=115 comm="asterisk" exe="/usr/sbin/asterisk" subj=unconfined_u:system_r:asterisk_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-46.fc12,catchall,asterisk,asterisk_t,asterisk_t,process,setcap
audit2allow suggests:

#============= asterisk_t ==============
allow asterisk_t self:process setcap;

Comment 1 Miroslav Grepl 2009-11-27 10:32:38 UTC

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