Bug 865320

Summary: SELinux is preventing /usr/bin/mplayer from 'create' accesses on the directory .mplayer.
Product: [Fedora] Fedora Reporter: GWL <limguowei>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:92a4d1ae5e8c76014b56e347338bae6677f0be7b4298da8828764eaea050e5d7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 15:54:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description GWL 2012-10-11 08:35:18 UTC
Description of problem:
stream divx movies

Additional info:
libreport version: 2.0.14
kernel:         3.5.5-2.fc17.x86_64

description:
:SELinux is preventing /usr/bin/mplayer from 'create' accesses on the directory .mplayer.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that mplayer should be allowed create access on the .mplayer 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 mplayer /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                .mplayer [ dir ]
:Source                        mplayer
:Source Path                   /usr/bin/mplayer
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           mplayer-1.0-0.142.20120205svn.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-149.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.5-2.fc17.x86_64 #1 SMP Wed Oct
:                              3 13:20:37 UTC 2012 x86_64 x86_64
:Alert Count                   4
:First Seen                    2012-10-11 16:30:44 SGT
:Last Seen                     2012-10-11 16:31:35 SGT
:Local ID                      7429f7d2-c698-4c54-ab4e-43f188406dd4
:
:Raw Audit Messages
:type=AVC msg=audit(1349944295.116:101): avc:  denied  { create } for  pid=22758 comm="mplayer" name=".mplayer" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1349944295.116:101): arch=x86_64 syscall=mkdir success=no exit=EACCES a0=c182a0 a1=1ff a2=6c8eec a3=7fff4f632b50 items=0 ppid=1 pid=22758 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=mplayer exe=/usr/bin/mplayer subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: mplayer,mozilla_plugin_t,user_home_dir_t,dir,create
:
:audit2allow
:
:#============= mozilla_plugin_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow mozilla_plugin_t user_home_dir_t:dir create;
:
:audit2allow -R
:
:#============= mozilla_plugin_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow mozilla_plugin_t user_home_dir_t:dir create;
:

Comment 1 GWL 2012-10-11 08:35:23 UTC
Created attachment 625406 [details]
File: type

Comment 2 GWL 2012-10-11 08:35:26 UTC
Created attachment 625407 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-10-12 02:51:48 UTC
a0b3013cedad51894537c8f7ff96cef09289569b Fixes this in F18.

Comment 4 Miroslav Grepl 2012-10-17 07:30:17 UTC
Added.

commit a4a0eb23f1fd61b94d56d3bf8622bb73f81422ec
Author: Miroslav Grepl <mgrepl>
Date:   Wed Oct 17 09:30:03 2012 +0200

    Allow mozilla_plugin_t to create .mplayer in users homedir and put files in it

Comment 5 Fedora Update System 2012-10-17 12:35:28 UTC
selinux-policy-3.10.0-156.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-156.fc17

Comment 6 Fedora Update System 2012-10-18 00:26:54 UTC
Package selinux-policy-3.10.0-156.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-156.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16347/selinux-policy-3.10.0-156.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-12-20 15:54:52 UTC
selinux-policy-3.10.0-156.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.