Bug 624528

Summary: SELinux is preventing /usr/bin/perl "getattr" access on /usr/sbin/brctl.
Product: [Fedora] Fedora Reporter: GJahchan
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, GJahchan, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:953718216d308b324b212f92de20a0602d96bbeda062f80e99e578a038abfedf
Fixed In Version: selinux-policy-3.7.19-49.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-24 21:12:58 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 GJahchan 2010-08-16 18:46:04 UTC
Summary:

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

Detailed Description:

SELinux denied access requested by perl. It is not expected that this access is
required by perl 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:shorewall_t:s0
Target Context                system_u:object_r:brctl_exec_t:s0
Target Objects                /usr/sbin/brctl [ file ]
Source                        perl
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           perl-5.10.1-116.fc13
Target RPM Packages           bridge-utils-1.2-9.fc13
Policy RPM                    selinux-policy-3.7.19-44.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.33.6-147.2.4.fc13.x86_64 #1 SMP Fri Jul 23
                              17:14:44 UTC 2010 x86_64 x86_64
Alert Count                   21
First Seen                    Tue 10 Aug 2010 09:49:49 PM EEST
Last Seen                     Mon 16 Aug 2010 03:33:43 PM EEST
Local ID                      1bac02e2-116d-4ed5-9d9a-b575796f4e38
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1281962023.892:12): avc:  denied  { getattr } for  pid=1678 comm="perl" path="/usr/sbin/brctl" dev=dm-1 ino=2413311 scontext=system_u:system_r:shorewall_t:s0 tcontext=system_u:object_r:brctl_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1281962023.892:12): arch=c000003e syscall=4 success=no exit=-13 a0=2c6e960 a1=1f65130 a2=1f65130 a3=10 items=0 ppid=1662 pid=1678 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="perl" exe="/usr/bin/perl" subj=system_u:system_r:shorewall_t:s0 key=(null)



Hash String generated from  catchall,perl,shorewall_t,brctl_exec_t,file,getattr
audit2allow suggests:

#============= shorewall_t ==============
allow shorewall_t brctl_exec_t:file getattr;

Comment 1 Miroslav Grepl 2010-08-17 09:00:05 UTC
*** Bug 624526 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2010-08-17 09:01:28 UTC
Dan, 
we need to add some changes for shorewall policy. I have sent you a patch.

Comment 3 Miroslav Grepl 2010-08-18 11:19:17 UTC
Fixed in selinux-policy-3.7.19-48.fc13

Comment 4 Fedora Update System 2010-08-20 13:01:44 UTC
selinux-policy-3.7.19-49.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-49.fc13

Comment 5 Fedora Update System 2010-08-21 04:33:35 UTC
selinux-policy-3.7.19-49.fc13 has been pushed to the Fedora 13 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/selinux-policy-3.7.19-49.fc13

Comment 6 Fedora Update System 2010-08-24 21:12:23 UTC
selinux-policy-3.7.19-49.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.