Bug 879886 - SELinux is preventing /usr/bin/totem-video-thumbnailer from 'setattr' accesses on the directory at-spi2.
Summary: SELinux is preventing /usr/bin/totem-video-thumbnailer from 'setattr' accesse...
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:7751b0ad537792033ffb2d69458...
: 879980 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-25 06:58 UTC by Benjamin Kingston
Modified: 2013-01-07 04:01 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-07 04:01:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-25 06:58 UTC, Benjamin Kingston
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-25 06:58 UTC, Benjamin Kingston
no flags Details

Description Benjamin Kingston 2012-11-25 06:58:22 UTC
Description of problem:
reading thumbnails on a GVFS smb share

Additional info:
libreport version: 2.0.18
kernel:         3.6.6-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/totem-video-thumbnailer from 'setattr' accesses on the directory at-spi2.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that totem-video-thumbnailer should be allowed setattr access on the at-spi2 directory 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 totem-video-thu /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:object_r:user_tmp_t:s0
:Target Objects                at-spi2 [ dir ]
:Source                        totem-video-thu
:Source Path                   /usr/bin/totem-video-thumbnailer
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           totem-3.4.3-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.6-1.fc17.x86_64 #1 SMP Mon Nov
:                              5 21:59:35 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    2012-11-24 23:54:37 MST
:Last Seen                     2012-11-24 23:55:15 MST
:Local ID                      d5e195f5-9dc3-43ed-b014-b58a38d85a44
:
:Raw Audit Messages
:type=AVC msg=audit(1353826515.627:865): avc:  denied  { setattr } for  pid=9286 comm="totem-video-thu" name="at-spi2" dev="tmpfs" ino=22157 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1353826515.627:865): arch=x86_64 syscall=chmod success=yes exit=0 a0=7fa3d6b86761 a1=3ff a2=11 a3=7fffaea53f20 items=0 ppid=25305 pid=9286 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=totem-video-thu exe=/usr/bin/totem-video-thumbnailer subj=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 key=(null)
:
:Hash: totem-video-thu,thumb_t,user_tmp_t,dir,setattr
:
:audit2allow
:
:#============= thumb_t ==============
:allow thumb_t user_tmp_t:dir setattr;
:
:audit2allow -R
:
:#============= thumb_t ==============
:allow thumb_t user_tmp_t:dir setattr;
:

Comment 1 Benjamin Kingston 2012-11-25 06:58:25 UTC
Created attachment 651400 [details]
File: type

Comment 2 Benjamin Kingston 2012-11-25 06:58:26 UTC
Created attachment 651401 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-26 13:31:59 UTC
Benjamin,
do you know what you were doing? Are you able to reproduce it? I would like to reproduce this issue.

Comment 4 Miroslav Grepl 2012-11-26 13:32:14 UTC
*** Bug 879980 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Walsh 2012-11-27 12:30:43 UTC
Added a dontaudit for this.  I don't believe this will cause any problems.

Fixed in selinux-policy-3.11.1-57.fc18.noarch

Comment 6 Josip Šumečki 2012-12-03 18:43:53 UTC
Steps to reproduce:
- install plugin for nautilus to display thumbnails of raw photo files (olympus ORF format)
- open folder with nautils with stored .orf files


Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 7 Fedora Update System 2012-12-17 18:42:13 UTC
selinux-policy-3.10.0-165.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-165.fc17

Comment 8 Fedora Update System 2012-12-18 02:37:55 UTC
Package selinux-policy-3.10.0-165.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-165.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-165.fc17
then log in and leave karma (feedback).

Comment 9 Dmitry Burstein 2012-12-23 03:56:40 UTC
Since the update I haven't got any negative SE events on totem's behalf. Looks like fixed.
Thanks.

Comment 10 Miroslav Grepl 2012-12-27 09:48:52 UTC
Thank you for testing.

Comment 11 Fedora Update System 2013-01-05 06:41:27 UTC
Package selinux-policy-3.10.0-166.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-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2013-01-07 04:01:23 UTC
selinux-policy-3.10.0-166.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.