Bug 904664 - SELinux is preventing /usr/lib64/libreoffice/program/soffice.bin from 'read' accesses on the file /anon_hugepage (deleted).
Summary: SELinux is preventing /usr/lib64/libreoffice/program/soffice.bin from 'read' ...
Keywords:
Status: CLOSED CURRENTRELEASE
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:7c4f9d0299c6e75347a08539177...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-26 22:59 UTC by hywel
Modified: 2013-02-12 05:09 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-12 05:09:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2013-01-26 22:59 UTC, hywel
no flags Details
File: hashmarkername (14 bytes, text/plain)
2013-01-26 22:59 UTC, hywel
no flags Details

Description hywel 2013-01-26 22:59:01 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.7.3-101.fc17.x86_64

description:
:SELinux is preventing /usr/lib64/libreoffice/program/soffice.bin from 'read' accesses on the file /anon_hugepage (deleted).
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/anon_hugepage (deleted) default label should be etc_runtime_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /anon_hugepage (deleted)
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that soffice.bin should be allowed read access on the anon_hugepage (deleted) 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 soffice.bin /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                unconfined_u:object_r:hugetlbfs_t:s0
:Target Objects                /anon_hugepage (deleted) [ file ]
:Source                        soffice.bin
:Source Path                   /usr/lib64/libreoffice/program/soffice.bin
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           libreoffice-core-3.5.7.2-7.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-166.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.11-1.fc17.x86_64 #1 SMP Mon
:                              Dec 17 22:16:35 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    2013-01-14 22:41:52 EST
:Last Seen                     2013-01-17 19:07:46 EST
:Local ID                      c26f9f9f-2c4a-487d-9478-7c65357e83be
:
:Raw Audit Messages
:type=AVC msg=audit(1358467666.832:152): avc:  denied  { read } for  pid=4878 comm="soffice.bin" path=2F616E6F6E5F6875676570616765202864656C6574656429 dev="hugetlbfs" ino=7575130 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:hugetlbfs_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1358467666.832:152): arch=x86_64 syscall=mmap success=no exit=EACCES a0=0 a1=200000 a2=3 a3=40022 items=0 ppid=4866 pid=4878 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=3 comm=soffice.bin exe=/usr/lib64/libreoffice/program/soffice.bin subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: soffice.bin,mozilla_plugin_t,hugetlbfs_t,file,read
:
:audit2allow
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t hugetlbfs_t:file read;
:
:audit2allow -R
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t hugetlbfs_t:file read;
:

Comment 1 hywel 2013-01-26 22:59:05 UTC
Created attachment 688181 [details]
File: type

Comment 2 hywel 2013-01-26 22:59:07 UTC
Created attachment 688182 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2013-01-28 11:31:50 UTC
Added fixes.

commit e196caaab99f712d9b16ffe87e88ac8c3fe7acd9
Author: Miroslav Grepl <mgrepl>
Date:   Mon Jan 28 12:30:17 2013 +0100

    Add labeling and filename transition for .grl-podcasts

commit 5f4918a64d0b92ec0dea34d36d4970cc505a9bb9
Author: Miroslav Grepl <mgrepl>
Date:   Mon Jan 28 12:29:00 2013 +0100

    Allow mozilla_plugin_t to read files on hugetlbfs

Comment 4 Fedora Update System 2013-02-04 22:04:38 UTC
selinux-policy-3.10.0-167.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-167.fc17

Comment 5 Fedora Update System 2013-02-05 17:01:15 UTC
Package selinux-policy-3.10.0-167.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-167.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1971/selinux-policy-3.10.0-167.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-02-12 05:09:04 UTC
selinux-policy-3.10.0-167.fc17 has been pushed to the Fedora 17 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.