Bug 573769

Summary: SELinux is preventing /usr/bin/file "read" access on /usr/share/misc/magic.mgc.
Product: [Fedora] Fedora Reporter: Vaclav "sHINOBI" Misek <misek>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:2a54812a689dfa8e1aad7a88857ad59b4b32a5b4d8823753c0a666fa0e0186d3
Fixed In Version: selinux-policy-3.7.15-1.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-24 00:49:33 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 Vaclav "sHINOBI" Misek 2010-03-15 18:29:21 UTC
Summary:

SELinux is preventing /usr/bin/file "read" access on /usr/share/misc/magic.mgc.

Detailed Description:

[file has a permissive type (boinc_t). This access was not denied.]

SELinux denied access requested by file. It is not expected that this access is
required by file 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:boinc_t:SystemLow
Target Context                system_u:object_r:usr_t:SystemLow
Target Objects                /usr/share/misc/magic.mgc [ file ]
Source                        file
Source Path                   /usr/bin/file
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           file-5.04-3.fc13
Target RPM Packages           file-libs-5.04-3.fc13
Policy RPM                    selinux-policy-3.7.14-3.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33-1.fc13.x86_64 #1
                              SMP Wed Feb 24 19:55:32 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Mon 15 Mar 2010 07:23:51 PM CET
Last Seen                     Mon 15 Mar 2010 07:23:51 PM CET
Local ID                      3fc2abec-f4a9-4118-aa85-199fdb29c10a
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1268677431.591:18): avc:  denied  { read } for  pid=2063 comm="file" name="magic.mgc" dev=dm-0 ino=1101929 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268677431.591:18): avc:  denied  { open } for  pid=2063 comm="file" name="magic.mgc" dev=dm-0 ino=1101929 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1268677431.591:18): arch=c000003e syscall=2 success=yes exit=4 a0=118d310 a1=0 a2=6d a3=1a items=0 ppid=2059 pid=2063 auid=4294967295 uid=495 gid=491 euid=495 suid=495 fsuid=495 egid=491 sgid=491 fsgid=491 tty=(none) ses=4294967295 comm="file" exe="/usr/bin/file" subj=system_u:system_r:boinc_t:s0 key=(null)



Hash String generated from  catchall,file,boinc_t,usr_t,file,read
audit2allow suggests:

#============= boinc_t ==============
allow boinc_t usr_t:file { read open };

Comment 1 Daniel Walsh 2010-03-15 18:49:54 UTC
Fixed in selinux-policy-3.7.14-4.fc13.noarch

Comment 2 Fedora Update System 2010-03-18 17:24:58 UTC
selinux-policy-3.7.15-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.15-1.fc13

Comment 3 Fedora Update System 2010-03-23 02:18:01 UTC
selinux-policy-3.7.15-1.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.15-1.fc13

Comment 4 Fedora Update System 2010-03-24 00:49:03 UTC
selinux-policy-3.7.15-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.