Bug 906767 - SELinux is preventing /usr/bin/kde4-config from 'read' accesses on the directory /root.
Summary: SELinux is preventing /usr/bin/kde4-config from 'read' accesses on the direct...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1b32c72f525da4879c27d38ae40...
: 906769 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-01 12:45 UTC by Wesklay Vinicius
Modified: 2013-02-11 04:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-11 04:55:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Wesklay Vinicius 2013-02-01 12:45:54 UTC
Description of problem:
SELinux is preventing /usr/bin/kde4-config from 'read' accesses on the directory /root.

*****  Plugin catchall (100. confidence) suggests  ***************************

If você acredita que o kde4-config deva ser permitido acesso de read em root directory  por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# grep kde4-config /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:admin_home_t:s0
Target Objects                /root [ dir ]
Source                        kde4-config
Source Path                   /usr/bin/kde4-config
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdelibs-4.9.5-2.fc18.x86_64
Target RPM Packages           filesystem-3.1-2.fc18.x86_64
Policy RPM                    selinux-policy-3.11.1-73.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.10-4.fc18.x86_64 #1 SMP Tue
                              Dec 11 18:01:27 UTC 2012 x86_64 x86_64
Alert Count                   38
First Seen                    2013-02-01 08:29:35 BRT
Last Seen                     2013-02-01 09:43:54 BRT
Local ID                      78404e92-03a7-43c3-a8e5-c5f696382168

Raw Audit Messages
type=AVC msg=audit(1359722634.455:475): avc:  denied  { read } for  pid=15509 comm="kde4-config" name="root" dev="sda7" ino=2621441 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1359722634.455:475): arch=x86_64 syscall=access success=no exit=EACCES a0=20ac188 a1=4 a2=20ac101 a3=2 items=0 ppid=15461 pid=15509 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm=kde4-config exe=/usr/bin/kde4-config subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: kde4-config,mozilla_plugin_t,admin_home_t,dir,read

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t admin_home_t:dir read;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t admin_home_t:dir read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.10-4.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-02-01 13:57:31 UTC
This is dontaudited in F19.0e29aa055f64b49631cd52caa982443018f641ce

Comment 2 Daniel Walsh 2013-02-01 13:58:12 UTC
BTW Were you running firefox as root?  This is not something we want to support.

Comment 3 Daniel Walsh 2013-02-01 13:59:17 UTC
*** Bug 906769 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2013-02-04 10:21:26 UTC
Fixed in selinux-policy-3.11.1-75.fc18

Comment 5 Fedora Update System 2013-02-05 09:23:44 UTC
selinux-policy-3.11.1-76.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-76.fc18

Comment 6 Fedora Update System 2013-02-08 02:36:04 UTC
Package selinux-policy-3.11.1-76.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-76.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2101/selinux-policy-3.11.1-76.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-02-11 04:55:18 UTC
selinux-policy-3.11.1-76.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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