Bug 903062 - SELinux is preventing /usr/bin/evince-thumbnailer from 'getattr' accesses on the file /proc/<pid>/cmdline.
Summary: SELinux is preventing /usr/bin/evince-thumbnailer from 'getattr' accesses on ...
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:9edc40b14a10ed3f650295f8332...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-23 04:08 UTC by Dale Turner
Modified: 2013-02-08 02:22 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-08 02:22:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dale Turner 2013-01-23 04:08:11 UTC
Description of problem:
Opened a folder containing .webm videos
SELinux is preventing /usr/bin/evince-thumbnailer from 'getattr' accesses on the file /proc/<pid>/cmdline.

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

If you believe that evince-thumbnailer should be allowed getattr access on the cmdline 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 evince-thumbnai /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                /proc/<pid>/cmdline [ file ]
Source                        evince-thumbnai
Source Path                   /usr/bin/evince-thumbnailer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           totem-3.6.3-2.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-71.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.7.2-204.fc18.x86_64 #1 SMP Wed
                              Jan 16 16:22:52 UTC 2013 x86_64 x86_64
Alert Count                   6
First Seen                    2013-01-18 02:27:03 AST
Last Seen                     2013-01-23 00:07:01 AST
Local ID                      96b620c3-b2ff-4478-b79d-c8e45d74771d

Raw Audit Messages
type=AVC msg=audit(1358914021.568:683): avc:  denied  { getattr } for  pid=12291 comm="totem-video-thu" path="/proc/9476/cmdline" dev="proc" ino=217842 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=file


type=SYSCALL msg=audit(1358914021.568:683): arch=x86_64 syscall=fstat success=yes exit=0 a0=3 a1=7fff790b3640 a2=7fff790b3640 a3=7fff790b3510 items=0 ppid=9476 pid=12291 auid=1000 uid=1000 gid=100 euid=1000 suid=1000 fsuid=1000 egid=100 sgid=100 fsgid=100 ses=5 tty=(none) comm=totem-video-thu exe=/usr/bin/totem-video-thumbnailer subj=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 key=(null)

Hash: evince-thumbnai,thumb_t,unconfined_t,file,getattr

audit2allow

#============= thumb_t ==============
allow thumb_t unconfined_t:file getattr;

audit2allow -R

#============= thumb_t ==============
allow thumb_t unconfined_t:file getattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.2-204.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-01-23 09:23:59 UTC
Fixed in selinux-policy-3.11.1-74.fc18.noarch

Comment 2 Fedora Update System 2013-01-31 13:17:47 UTC
selinux-policy-3.11.1-74.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-74.fc18

Comment 3 Fedora Update System 2013-02-01 16:38:17 UTC
Package selinux-policy-3.11.1-74.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-74.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1693/selinux-policy-3.11.1-74.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-02-08 02:22:46 UTC
selinux-policy-3.11.1-74.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.