Bug 919930 - SELinux is preventing /usr/bin/gxine from 'read' accesses on the directory /usr/lib64/httpd.
Summary: SELinux is preventing /usr/bin/gxine from 'read' accesses on the directory /u...
Keywords:
Status: CLOSED ERRATA
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:f437cb68e446c9c18cb9b25dda8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-10 23:24 UTC by s_gollmer
Modified: 2013-03-14 03:01 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-14 03:01:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description s_gollmer 2013-03-10 23:24:21 UTC
Description of problem:
SELinux is preventing /usr/bin/gxine from 'read' accesses on the directory /usr/lib64/httpd.

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

If sie denken, dass es gxine standardmässig erlaubt sein sollte, read Zugriff auf httpd directory zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep pool /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:httpd_modules_t:s0
Target Objects                /usr/lib64/httpd [ dir ]
Source                        pool
Source Path                   /usr/bin/gxine
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gxine-0.5.907-7.fc18.x86_64
Target RPM Packages           httpd-2.4.3-15.fc18.x86_64
Policy RPM                    selinux-policy-3.11.1-82.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.1-201.fc18.x86_64 #1 SMP Thu
                              Feb 28 19:23:08 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-02-19 15:30:18 CET
Last Seen                     2013-03-10 13:53:50 CET
Local ID                      bab5020d-edb5-43c7-9e82-3b0a7bbe1cb4

Raw Audit Messages
type=AVC msg=audit(1362920030.810:497): avc:  denied  { read } for  pid=6141 comm="pool" name="httpd" dev="sda11" ino=1922074 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:httpd_modules_t:s0 tclass=dir


type=SYSCALL msg=audit(1362920030.810:497): arch=x86_64 syscall=open success=no exit=EACCES a0=7fbaf0195b90 a1=40000 a2=0 a3=19 items=0 ppid=1 pid=6141 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=pool exe=/usr/bin/gxine subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: pool,mozilla_plugin_t,httpd_modules_t,dir,read

audit2allow

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

audit2allow -R

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


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.1-201.fc18.x86_64
type:           libreport

Potential duplicate: bug 887631

Comment 1 Daniel Walsh 2013-03-11 17:00:50 UTC
commit 63d9c658dda7d74f30a7e1b4c800a5ffbc4b8ad3 fixes this in Rawhide.

Comment 2 Miroslav Grepl 2013-03-12 10:02:30 UTC
back ported.

Comment 3 Fedora Update System 2013-03-12 13:56:23 UTC
selinux-policy-3.11.1-85.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18

Comment 4 Fedora Update System 2013-03-12 23:38:15 UTC
Package selinux-policy-3.11.1-85.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-85.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-03-14 03:01:55 UTC
selinux-policy-3.11.1-85.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.