Bug 885502
| Summary: | SELinux is preventing /usr/bin/bash from 'getattr' accesses on the file /etc/locale.conf. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Isaac <isaac18490> | ||||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||||
| Status: | CLOSED ERRATA | 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:2a27d8cc0b8f35f06e783d6231380c430c76c17dbf164d7ee9647de898038922 | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-12-10 09:48:31 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: | |||||||||
| Attachments: |
|
||||||||
Created attachment 660446 [details]
File: type
Created attachment 660447 [details]
File: hashmarkername
restorecon /etc/locale.conf Will fix the problem. Is this file created at boot time? Could you try to update the policy. We added some fixes. Please reopen if you get it again. |
Additional info: libreport version: 2.0.18 kernel: 3.6.8-libre.2.fc17.gnu.x86_64 description: :SELinux is preventing /usr/bin/bash from 'getattr' accesses on the file /etc/locale.conf. : :***** Plugin restorecon (99.5 confidence) suggests ************************* : :If you want to fix the label. :/etc/locale.conf default label should be locale_t. :Then you can run restorecon. :Do :# /sbin/restorecon -v /etc/locale.conf : :***** Plugin catchall (1.49 confidence) suggests *************************** : :If you believe that bash should be allowed getattr access on the locale.conf 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 service /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:firewallgui_t:s0-s0:c0.c1023 :Target Context system_u:object_r:etc_runtime_t:s0 :Target Objects /etc/locale.conf [ file ] :Source service :Source Path /usr/bin/bash :Port <Unknown> :Host (removed) :Source RPM Packages bash-4.2.37-2.fc17.x86_64 :Target RPM Packages systemd-44-21.fc17.x86_64 :Policy RPM selinux-policy-3.10.0-156.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.5-libre.1.fc17.gnu.x86_64 #1 : SMP Thu Nov 1 15:47:16 EDT 2012 x86_64 x86_64 :Alert Count 16 :First Seen 2012-11-12 14:25:40 CST :Last Seen 2012-11-12 14:25:58 CST :Local ID ae3df1ab-ae1b-4728-a3fb-8e56a486ab94 : :Raw Audit Messages :type=AVC msg=audit(1352751958.384:464): avc: denied { getattr } for pid=23275 comm="service" path="/etc/locale.conf" dev="sda3" ino=2362749 scontext=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file : : :type=SYSCALL msg=audit(1352751958.384:464): arch=x86_64 syscall=stat success=no exit=EACCES a0=d275b0 a1=7ffffedefea0 a2=7ffffedefea0 a3=8 items=0 ppid=23274 pid=23275 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=service exe=/usr/bin/bash subj=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 key=(null) : :Hash: service,firewallgui_t,etc_runtime_t,file,getattr : :audit2allow : :#============= firewallgui_t ============== :allow firewallgui_t etc_runtime_t:file getattr; : :audit2allow -R : :#============= firewallgui_t ============== :allow firewallgui_t etc_runtime_t:file getattr; : Potential duplicate bug: 759653