Bug 907234 - SELinux is preventing /usr/bin/totem-video-thumbnailer from 'write' accesses on the sock_file /var/lib/sss/pipes/nss.
Summary: SELinux is preventing /usr/bin/totem-video-thumbnailer from 'write' accesses ...
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:fbd71360f92d708bc306b2d38cd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-03 21:59 UTC by Niki Guldbrand
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:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Niki Guldbrand 2013-02-03 21:59:09 UTC
Description of problem:
Was browsing a folder with media file in nautilus.
SELinux is preventing /usr/bin/totem-video-thumbnailer from 'write' accesses on the sock_file /var/lib/sss/pipes/nss.

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

If you believe that totem-video-thumbnailer should be allowed write access on the nss sock_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 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                system_u:object_r:sssd_var_lib_t:s0
Target Objects                /var/lib/sss/pipes/nss [ sock_file ]
Source                        totem-video-thu
Source Path                   /usr/bin/totem-video-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-73.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.4-204.fc18.x86_64 #1 SMP Wed
                              Jan 23 16:44:29 UTC 2013 x86_64 x86_64
Alert Count                   27
First Seen                    2013-02-03 22:54:50 CET
Last Seen                     2013-02-03 22:54:59 CET
Local ID                      d8b3f6cd-1289-4fca-af59-d20df33efb51

Raw Audit Messages
type=AVC msg=audit(1359928499.505:923): avc:  denied  { write } for  pid=17149 comm="totem-video-thu" name="nss" dev="dm-2" ino=525030 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sssd_var_lib_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1359928499.505:923): arch=x86_64 syscall=connect success=no exit=EACCES a0=4 a1=7fff54751dd0 a2=6e a3=7f42999a81e0 items=0 ppid=6813 pid=17149 auid=1236200002 uid=1236200002 gid=1236200002 euid=1236200002 suid=1236200002 fsuid=1236200002 egid=1236200002 sgid=1236200002 fsgid=1236200002 ses=2 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: totem-video-thu,thumb_t,sssd_var_lib_t,sock_file,write

audit2allow

#============= thumb_t ==============
allow thumb_t sssd_var_lib_t:sock_file write;

audit2allow -R

#============= thumb_t ==============
allow thumb_t sssd_var_lib_t:sock_file write;


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

Comment 1 Miroslav Grepl 2013-02-04 12:02:00 UTC
Added a fix.

commit fae7b7446dd9ab1d0f4955027bd3fe9e006ef520
Author: Miroslav Grepl <mgrepl>
Date:   Mon Feb 4 13:00:32 2013 +0100

    Fix sssd_dontaudit_stream_connect() interface

Comment 2 Fedora Update System 2013-02-05 09:24:13 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 3 Fedora Update System 2013-02-08 02:36:42 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 4 Fedora Update System 2013-02-11 04:55:51 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.