Bug 823211 - SELinux is preventing /usr/bin/totem from 'create' accesses on the file .grl-metadata-store.
Summary: SELinux is preventing /usr/bin/totem from 'create' accesses on the file .grl-...
Keywords:
Status: CLOSED ERRATA
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:2bb21978ff3eb48b685d109d3df...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-19 23:25 UTC by hellojoker
Modified: 2012-09-11 11:17 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-03 23:30:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description hellojoker 2012-05-19 23:25:49 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.4-5.fc17.x86_64
time:           dom 20 mag 2012 01:25:36 CEST

description:
:SELinux is preventing /usr/bin/totem from 'create' accesses on the file .grl-metadata-store.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If si crede che totem dovrebbe avere possibilità di accesso create sui .grl-metadata-store file in modo predefinito.
:Then si dovrebbe riportare il problema come bug.
:E' possibile generare un modulo di politica locale per consentire questo accesso.
:Do
:consentire questo accesso per il momento eseguendo:
:# grep totem /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
:                              0.c1023
:Target Context                unconfined_u:object_r:user_home_dir_t:s0
:Target Objects                .grl-metadata-store [ file ]
:Source                        totem
:Source Path                   /usr/bin/totem
:Port                          <Sconosciuto>
:Host                          (removed)
:Source RPM Packages           totem-3.4.1-3.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-121.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.4-5.fc17.x86_64 #1 SMP Mon May 7
:                              17:29:34 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    dom 20 mag 2012 01:15:35 CEST
:Last Seen                     dom 20 mag 2012 01:15:36 CEST
:Local ID                      e87672cf-cffb-4087-a958-bb3009996306
:
:Raw Audit Messages
:type=AVC msg=audit(1337469336.133:132): avc:  denied  { create } for  pid=2013 comm="totem" name=".grl-metadata-store" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1337469336.133:132): arch=x86_64 syscall=open success=no exit=EACCES a0=3099278 a1=42 a2=1a4 a3=18 items=0 ppid=1 pid=2013 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=totem exe=/usr/bin/totem subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: totem,mozilla_plugin_t,user_home_dir_t,file,create
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-05-21 08:38:28 UTC
Fixed in selinux-policy-3.10.0-126.fc17

Comment 2 Fedora Update System 2012-05-31 06:26:16 UTC
selinux-policy-3.10.0-128.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-128.fc17

Comment 3 Fedora Update System 2012-06-01 17:08:23 UTC
Package selinux-policy-3.10.0-128.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-128.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-8720/selinux-policy-3.10.0-128.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-06-03 23:30:56 UTC
selinux-policy-3.10.0-128.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Francisco de la Peña 2012-09-09 20:31:39 UTC
SELinux is preventing /usr/bin/totem from 'create' accesses on the file .grl-metadata-store.

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

If cree que de manera predeterminada, totem debería permitir acceso create sobre  .grl-metadata-store file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
permita el acceso momentáneamente executando:
# grep totem /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:object_r:user_home_dir_t:s0
Target Objects                .grl-metadata-store [ file ]
Source                        totem
Source Path                   /usr/bin/totem
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           totem-3.4.3-1.fc17.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-146.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.5.3-1.fc17.i686 #1 SMP Wed Aug
                              29 19:25:38 UTC 2012 i686 i686
Alert Count                   3
First Seen                    2012-09-09 14:22:27 CST
Last Seen                     2012-09-09 14:22:29 CST
Local ID                      1edcd8a9-208a-451d-b7f1-8d4c938dcaaf

Raw Audit Messages
type=AVC msg=audit(1347222149.875:135): avc:  denied  { create } for  pid=10331 comm="totem" name=".grl-metadata-store" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=SYSCALL msg=audit(1347222149.875:135): arch=i386 syscall=open success=no exit=EACCES a0=9d8bf08 a1=8042 a2=1a4 a3=0 items=0 ppid=1 pid=10331 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=totem exe=/usr/bin/totem subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: totem,mozilla_plugin_t,user_home_dir_t,file,create

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_dir_t:file create;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_dir_t:file create;

Comment 6 Miroslav Grepl 2012-09-11 06:34:37 UTC
Francisco,
if you execute in your terminal

# restorecon -R -v /home

does it work then?

Comment 7 Daniel Walsh 2012-09-11 10:57:13 UTC
/home/dwalsh/dwalsh/.grl-metadata-store

This looks like a top level directory.

Comment 8 Daniel Walsh 2012-09-11 11:17:37 UTC
I just fixed this in F18 policy.  We were only transitioning on a directory rather then a file.


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