| Summary: | SELinux is preventing chrome from 'read' accesses on the file /home/mikhail/.config/google-chrome/Dictionaries/en-US-2-1.bdic. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mikhail <mikhail.v.gavrilov> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | 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: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:43938929fe155abe620db952961fd5e40988f731853727d9fb65867fe2a5544e | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-18 14:49:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
restorecon -R -v /home Looks like your homedir was mounted from a disk without labels. |
libreport version: 2.0.6 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.1.0-7.fc16.i686 reason: SELinux is preventing chrome from 'read' accesses on the file /home/mikhail/.config/google-chrome/Dictionaries/en-US-2-1.bdic. time: Fri Nov 18 12:55:46 2011 description: :SELinux is preventing chrome from 'read' accesses on the file /home/mikhail/.config/google-chrome/Dictionaries/en-US-2-1.bdic. : :***** Plugin restorecon (82.4 confidence) suggests ************************* : :If you want to fix the label. :/home/mikhail/.config/google-chrome/Dictionaries/en-US-2-1.bdic default label should be config_home_t. :Then you can run restorecon. :Do :# /sbin/restorecon -v /home/mikhail/.config/google-chrome/Dictionaries/en-US-2-1.bdic : :***** Plugin file (7.05 confidence) suggests ******************************* : :If you think this is caused by a badly mislabeled machine. :Then you need to fully relabel. :Do :touch /.autorelabel; reboot : :***** Plugin file (7.05 confidence) suggests ******************************* : :If you think this is caused by a badly mislabeled machine. :Then you need to fully relabel. :Do :touch /.autorelabel; reboot : :***** Plugin catchall_labels (4.59 confidence) suggests ******************** : :If you want to allow chrome to have read access on the en-US-2-1.bdic file :Then you need to change the label on /home/mikhail/.config/google-chrome/Dictionaries/en-US-2-1.bdic :Do :# semanage fcontext -a -t FILE_TYPE '/home/mikhail/.config/google-chrome/Dictionaries/en-US-2-1.bdic' :where FILE_TYPE is one of the following: sysadm_usertype, xdm_tmp_t, user_home_type, gnome_home_type, xdm_var_run_t, net_conf_t, chrome_sandbox_t, abrt_var_run_t, sysctl_kernel_t, user_usertype, execmem_exec_t, sysctl_crypto_t, chrome_sandbox_exec_t, staff_usertype, cgroup_t, bin_t, cert_t, xguest_usertype, locale_t, usr_t, etc_t, fonts_t, abrt_t, proc_t, lib_t, sysfs_t, config_home_t, ld_so_t, user_fonts_cache_t, afs_cache_t, abrt_helper_exec_t, user_fonts_t, user_tmpfs_t, xserver_tmpfs_t, iceauth_home_t, xauth_home_t, fonts_cache_t, chrome_sandbox_tmpfs_t, user_fonts_config_t, sandbox_web_type, textrel_shlib_t, rpm_script_tmp_t, user_cron_spool_t, chrome_sandbox_tmp_t, ld_so_cache_t, unconfined_usertype. :Then execute: :restorecon -v '/home/mikhail/.config/google-chrome/Dictionaries/en-US-2-1.bdic' : : :***** Plugin catchall (1.31 confidence) suggests *************************** : :If you believe that chrome should be allowed read access on the en-US-2-1.bdic 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 chrome /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c : 0.c1023 :Target Context unconfined_u:object_r:file_t:s0 :Target Objects /home/mikhail/.config/google-chrome/Dictionaries : /en-US-2-1.bdic [ file ] :Source chrome :Source Path chrome :Port <Unknown> :Host (removed) :Source RPM Packages google-chrome-unstable-17.0.942.0-110446 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-46.fc16 :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.1.0-7.fc16.i686 #1 SMP Tue : Nov 1 21:00:16 UTC 2011 i686 i686 :Alert Count 6 :First Seen Fri 18 Nov 2011 10:49:03 AM YEKT :Last Seen Fri 18 Nov 2011 10:49:12 AM YEKT :Local ID 13400ec0-4db5-4fd3-896c-870a5889b5c2 : :Raw Audit Messages :type=AVC msg=audit(1321595352.995:116): avc: denied { read } for pid=3846 comm="chrome" path="/home/mikhail/.config/google-chrome/Dictionaries/en-US-2-1.bdic" dev=sda5 ino=12984263 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file : : :type=SYSCALL msg=audit(1321595352.995:116): arch=i386 syscall=socketcall success=yes exit=EPERM a0=11 a1=b2d80160 a2=b794dff4 a3=0 items=0 ppid=1 pid=3846 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4 comm=chrome exe=/opt/google/chrome/chrome subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null) : :Hash: chrome,chrome_sandbox_t,file_t,file,read : :audit2allow : :#============= chrome_sandbox_t ============== :allow chrome_sandbox_t file_t:file read; : :audit2allow -R : :#============= chrome_sandbox_t ============== :allow chrome_sandbox_t file_t:file read; :