Bug 1214771 - SELinux is preventing totem-video-thu from 'write' accesses on the directory gstreamer-1.0.
Summary: SELinux is preventing totem-video-thu from 'write' accesses on the directory ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6305cd9abe55226e06c43ca80d5...
: 1214773 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-23 13:45 UTC by Leslie Satenstein
Modified: 2015-10-16 22:49 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-16 22:49:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Leslie Satenstein 2015-04-23 13:45:53 UTC
Description of problem:
SELinux is preventing totem-video-thu from 'write' accesses on the directory gstreamer-1.0.

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

If you believe that totem-video-thu should be allowed write access on the gstreamer-1.0 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:home_root_t:s0
Target Objects                gstreamer-1.0 [ dir ]
Source                        totem-video-thu
Source Path                   totem-video-thu
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-105.11.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.19.3-200.fc21.x86_64 #1 SMP Thu
                              Mar 26 21:39:42 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-04-21 11:43:38 EDT
Last Seen                     2015-04-21 11:43:38 EDT
Local ID                      c2d3aff0-5589-4bb6-ad60-88f9d5e5cabf

Raw Audit Messages
type=AVC msg=audit(1429631018.199:541): avc:  denied  { write } for  pid=4021 comm="totem-video-thu" name="gstreamer-1.0" dev="sde2" ino=1455505 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:home_root_t:s0 tclass=dir permissive=1


Hash: totem-video-thu,thumb_t,home_root_t,dir,write

Version-Release number of selected component:
selinux-policy-3.13.1-105.11.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.19.3-200.fc21.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2015-04-27 08:59:51 UTC
*** Bug 1214773 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2015-04-27 10:41:23 UTC
Hi,
This is weird. Where is your homedir set($ echo $HOME)?

Comment 3 Moez Roy 2015-05-10 21:39:40 UTC
Description of problem:
Mounted home dir with the following option:  context=system_u:object_r:home_root_t:s0

Is this wrong?

Version-Release number of selected component:
selinux-policy-3.13.1-105.13.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.19.6-200.fc21.x86_64
type:           libreport

Comment 4 Moez Roy 2015-05-11 13:08:00 UTC
(In reply to Moez Roy from comment #3)
> Description of problem:
> Mounted home dir with the following option: 
> context=system_u:object_r:home_root_t:s0
> 
> Is this wrong?
> 
> Version-Release number of selected component:
> selinux-policy-3.13.1-105.13.fc21.noarch
> 
> Additional info:
> reporter:       libreport-2.3.0
> hashmarkername: setroubleshoot
> kernel:         3.19.6-200.fc21.x86_64
> type:           libreport

Also the thumbnails show up just fine in the file manager? 

It doesn't seem SELinux is doing any blocking here?

Comment 5 Leslie Satenstein 2015-05-11 20:11:03 UTC
That message was automatically generated.  Though I am the originator, I am not the issuer. The software performed auto-advisement.

Comment 6 Miroslav Grepl 2015-05-12 15:10:26 UTC
(In reply to Leslie Satenstein from comment #5)
> That message was automatically generated.  Though I am the originator, I am
> not the issuer. The software performed auto-advisement.

Does

$ restorecon -R -v ~

fix your problem?

Comment 7 Leslie Satenstein 2015-10-16 22:49:48 UTC
yes, 

Time to close this bug(let)


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