Bug 885502 - SELinux is preventing /usr/bin/bash from 'getattr' accesses on the file /etc/locale.conf.
Summary: SELinux is preventing /usr/bin/bash from 'getattr' accesses on the file /etc/...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2a27d8cc0b8f35f06e783d62313...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-09 21:15 UTC by Isaac
Modified: 2012-12-10 09:48 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-10 09:48:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-12-09 21:15 UTC, Isaac
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-12-09 21:15 UTC, Isaac
no flags Details

Description Isaac 2012-12-09 21:15:43 UTC
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

Comment 1 Isaac 2012-12-09 21:15:46 UTC
Created attachment 660446 [details]
File: type

Comment 2 Isaac 2012-12-09 21:15:48 UTC
Created attachment 660447 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-12-10 09:48:31 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.