Bug 882628 - SELinux is preventing /usr/bin/totem-video-thumbnailer from 'write' accesses on the file /home/dongming/.config/banshee-1/log.
Summary: SELinux is preventing /usr/bin/totem-video-thumbnailer from 'write' accesses ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: banshee
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e78bd7b2138638981287a2999da...
: 914971 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-02 11:53 UTC by dongming3720
Modified: 2013-08-01 11:35 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-01 11:35:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-12-02 11:54 UTC, dongming3720
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 701505 0 None None None Never

Description dongming3720 2012-12-02 11:53:29 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.8-2.fc17.x86_64

description:
:SELinux is preventing /usr/bin/totem-video-thumbnailer from 'write' accesses on the file /home/dongming/.config/banshee-1/log.
:
:*****  Plugin leaks (86.2 confidence) suggests  ******************************
:
:If you want to ignore totem-video-thumbnailer trying to write access the log file, because you believe it should not need this access.
:Then you should report this as a bug.  
:You can generate a local policy module to dontaudit this access.
:Do
:# grep /usr/bin/totem-video-thumbnailer /var/log/audit/audit.log | audit2allow -D -M mypol
:# semodule -i mypol.pp
:
:*****  Plugin catchall (14.7 confidence) suggests  ***************************
:
:If you believe that totem-video-thumbnailer should be allowed write access on the log 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                unconfined_u:object_r:config_home_t:s0
:Target Objects                /home/dongming/.config/banshee-1/log [ file ]
: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                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.8-2.fc17.x86_64 #1 SMP Tue Nov
:                              27 19:35:02 UTC 2012 x86_64 x86_64
:Alert Count                   81
:First Seen                    2012-12-02 19:47:47 CST
:Last Seen                     2012-12-02 19:50:31 CST
:Local ID                      1504d118-c124-4006-87e6-9e062358377a
:
:Raw Audit Messages
:type=AVC msg=audit(1354449031.417:323): avc:  denied  { write } for  pid=9687 comm="totem-video-thu" path="/home/dongming/.config/banshee-1/log" dev="sda5" ino=4981953 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=file
:
:
:type=AVC msg=audit(1354449031.417:323): avc:  denied  { write } for  pid=9687 comm="totem-video-thu" path="/home/dongming/.config/banshee-1/log" dev="sda5" ino=4981953 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1354449031.417:323): arch=x86_64 syscall=execve success=yes exit=0 a0=7fa67c001260 a1=7fa67c001220 a2=7fffffc3d900 a3=1c items=0 ppid=7907 pid=9687 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=10 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,config_home_t,file,write
:
:audit2allow
:
:#============= thumb_t ==============
:allow thumb_t config_home_t:file write;
:
:audit2allow -R
:
:#============= thumb_t ==============
:allow thumb_t config_home_t:file write;
:

Comment 1 dongming3720 2012-12-02 11:54:57 UTC
Created attachment 655931 [details]
File: type

Comment 2 Miroslav Grepl 2012-12-03 11:17:33 UTC
Does banshee close fd for /home/dongming/.config/banshee-1/log?

Comment 3 Miroslav Grepl 2013-02-25 12:47:44 UTC
*** Bug 914971 has been marked as a duplicate of this bug. ***

Comment 4 Ismael Olea 2013-05-01 19:31:14 UTC
(In reply to comment #2)
> Does banshee close fd for /home/dongming/.config/banshee-1/log?

Do you mean if it is closing file descriptor after each write? How could I check this?

Comment 5 Daniel Walsh 2013-05-07 16:03:51 UTC
Well I guess banshee is either intending to pass an open file descriptor to the thumbnailer as stdout/stderr, or it is accidental.

If it is accedental, you should be executing 
fcntl(fd, FD_SETFD, FD_CLOEXEC) on any file descriptor you open in your code, or

or


open(PATH, FD_CLOEXEC);

Comment 6 Fedora End Of Life 2013-07-04 03:40:36 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2013-08-01 11:35:19 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.