| Summary: | SELinux is preventing /usr/bin/file from 'read' accesses on the file /usr/share/misc/magic.mgc. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Devon Janitz <devonjanitz> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:0c61b0573a48b32d5c41322c02675ff82051d477e3d99bdb72d734b7e217a2a7 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-26 22:38:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 770148 *** |
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.1.6-1.fc16.x86_64 reason: SELinux is preventing /usr/bin/file from 'read' accesses on the file /usr/share/misc/magic.mgc. time: Sun 25 Dec 2011 07:56:28 PM EST description: :SELinux is preventing /usr/bin/file from 'read' accesses on the file /usr/share/misc/magic.mgc. : :***** Plugin catchall_labels (83.8 confidence) suggests ******************** : :If you want to allow file to have read access on the magic.mgc file :Then you need to change the label on /usr/share/misc/magic.mgc :Do :# semanage fcontext -a -t FILE_TYPE '/usr/share/misc/magic.mgc' :where FILE_TYPE is one of the following: boinc_tmpfs_t, initrc_var_run_t, boinc_var_lib_t, textrel_shlib_t, rpm_script_tmp_t, boinc_tmp_t, ld_so_cache_t, puppet_tmp_t, boinc_exec_t, abrt_var_run_t, boinc_project_var_lib_t, boinc_t, fail2ban_var_lib_t, sysctl_crypto_t, user_cron_spool_t, abrt_t, lib_t, ld_so_t, sysfs_t, afs_cache_t, abrt_helper_exec_t, mta_exec_type, root_t. :Then execute: :restorecon -v '/usr/share/misc/magic.mgc' : : :***** Plugin catchall (17.1 confidence) suggests *************************** : :If you believe that file should be allowed read access on the magic.mgc file by default. :Then you should report this as a bug. :You can generate a local policy module to allow this access. :Do :allow this access for now by executing: :# grep file /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:boinc_t:s0 :Target Context system_u:object_r:usr_t:s0 :Target Objects /usr/share/misc/magic.mgc [ file ] :Source file :Source Path /usr/bin/file :Port <Unknown> :Host (removed) :Source RPM Packages file-5.07-6.fc16 :Target RPM Packages file-libs-5.07-6.fc16 :Policy RPM selinux-policy-3.10.0-67.fc16 :Selinux Enabled True :Policy Type targeted :Enforcing Mode Permissive :Host Name (removed) :Platform Linux (removed) 3.1.6-1.fc16.x86_64 #1 : SMP Wed Dec 21 22:41:17 UTC 2011 x86_64 x86_64 :Alert Count 1 :First Seen Sun 25 Dec 2011 07:50:47 PM EST :Last Seen Sun 25 Dec 2011 07:50:47 PM EST :Local ID ce7ba2f6-ef32-4b58-bef4-3bdb839ff100 : :Raw Audit Messages :type=AVC msg=audit(1324860647.680:82): avc: denied { read } for pid=2215 comm="file" name="magic.mgc" dev=dm-1 ino=1837434 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file : : :type=AVC msg=audit(1324860647.680:82): avc: denied { open } for pid=2215 comm="file" name="magic.mgc" dev=dm-1 ino=1837434 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file : : :type=SYSCALL msg=audit(1324860647.680:82): arch=x86_64 syscall=open success=yes exit=EINTR a0=1ac3140 a1=0 a2=6d a3=1a items=0 ppid=2209 pid=2215 auid=4294967295 uid=993 gid=990 euid=993 suid=993 fsuid=993 egid=990 sgid=990 fsgid=990 tty=(none) ses=4294967295 comm=file exe=/usr/bin/file subj=system_u:system_r:boinc_t:s0 key=(null) : :Hash: file,boinc_t,usr_t,file,read : :audit2allow : :#============= boinc_t ============== :allow boinc_t usr_t:file { read open }; : :audit2allow -R : :#============= boinc_t ============== :allow boinc_t usr_t:file { read open }; :