| Summary: | SELinux is preventing /usr/bin/evince-thumbnailer from 'getattr' accesses on the file . | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Flóki Pálsson <flokip> |
| 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: | 17 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:20790fc757474028909e1e93d14d76a95f3b33bf0f7bcaf4f42e3de465af88d4 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-26 10:10:25 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Where are you placing a file? A directory is labeled as default_t which means, you will need to tell SELinux how to label it. >Where are you placing a file?
I dont know.
I can not repeat this.
See Bug 806470. Mighit be similar. *** This bug has been marked as a duplicate of bug 806470 *** |
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.3.0-1.fc17.x86_64 reason: SELinux is preventing /usr/bin/evince-thumbnailer from 'getattr' accesses on the file . time: fös 23.mar 2012, 02:31:57 GMT description: :SELinux is preventing /usr/bin/evince-thumbnailer from 'getattr' accesses on the file . : :***** Plugin catchall_labels (83.8 confidence) suggests ******************** : :If you want to allow evince-thumbnailer to have getattr access on the file :Then you need to change the label on $FIX_TARGET_PATH :Do :# semanage fcontext -a -t FILE_TYPE '$FIX_TARGET_PATH' :where FILE_TYPE is one of the following: fonts_cache_t, thumb_exec_t, shell_exec_t, sysctl_crypto_t, admin_home_t, user_cron_spool_t, cert_t, data_home_t, etc_t, xdm_tmp_t, user_home_type, sssd_public_t, abrt_t, lib_t, ld_so_t, net_conf_t, cpu_online_t, abrt_helper_exec_t, user_tmp_t, logfile, krb5_conf_t, user_tmp_type, passwd_file_t, gstreamer_home_t, textrel_shlib_t, user_home_t, xdm_home_t, rpm_script_tmp_t, thumb_tmp_t, ld_so_cache_t, bin_t, abrt_var_cache_t, samba_var_t, locale_t, sosreport_tmp_t, dosfs_t, etc_t, fonts_t, thumb_t, proc_t, rpm_tmp_t, usr_t, sysfs_t, net_conf_t, user_tmp_t, abrt_var_run_t, audio_home_t, krb5_host_rcache_t. :Then execute: :restorecon -v '$FIX_TARGET_PATH' : : :***** Plugin catchall (17.1 confidence) suggests *************************** : :If you believe that evince-thumbnailer should be allowed getattr access on the 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 evince-thumbnai /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 :Target Context unconfined_u:object_r:default_t:s0 :Target Objects [ file ] :Source evince-thumbnai :Source Path /usr/bin/evince-thumbnailer :Port <Unknown> :Host (removed) :Source RPM Packages evince-3.3.90-1.fc17.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-104.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.3.0-1.fc17.x86_64 #1 SMP Mon Mar 19 : 03:03:39 UTC 2012 x86_64 x86_64 :Alert Count 4 :First Seen mið 21.mar 2012, 20:38:42 GMT :Last Seen mið 21.mar 2012, 20:38:43 GMT :Local ID b6a21c1b-667f-45a3-8e15-8d3e7660c20d : :Raw Audit Messages :type=AVC msg=audit(1332362323.312:82): avc: denied { getattr } for pid=2437 comm="evince-thumbnai" path=2F6D6E742F746F6E6C6973742F746F6E6C6973742FC3BEC3A6747469722F796D69736C6567742F736B6AC3B66C2F4672616D74616C5F323931313533363037395F323031315F3939582E706466 dev="sdc1" ino=12017665 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:default_t:s0 tclass=file : : :type=SYSCALL msg=audit(1332362323.312:82): arch=x86_64 syscall=stat success=no exit=EACCES a0=18c7840 a1=7ffffbe1d730 a2=7ffffbe1d730 a3=70 items=0 ppid=2362 pid=2437 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=evince-thumbnai exe=/usr/bin/evince-thumbnailer subj=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 key=(null) : :Hash: evince-thumbnai,thumb_t,default_t,file,getattr : :audit2allowunable to open /sys/fs/selinux/policy: Permission denied : : :audit2allow -Runable to open /sys/fs/selinux/policy: Permission denied : :