Bug 865320 - SELinux is preventing /usr/bin/mplayer from 'create' accesses on the directory .mplayer.
SELinux is preventing /usr/bin/mplayer from 'create' accesses on the director...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-10-11 04:35 EDT by GWL
Modified: 2012-12-20 10:54 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-12-20 10:54:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-11 04:35 EDT, GWL
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-11 04:35 EDT, GWL
no flags Details

  None (edit)
Description GWL 2012-10-11 04:35:18 EDT
Description of problem:
stream divx movies

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

: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.
: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
:#============= 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 04:35:23 EDT
Created attachment 625406 [details]
File: type
Comment 2 GWL 2012-10-11 04:35:26 EDT
Created attachment 625407 [details]
File: hashmarkername
Comment 3 Daniel Walsh 2012-10-11 22:51:48 EDT
a0b3013cedad51894537c8f7ff96cef09289569b Fixes this in F18.
Comment 4 Miroslav Grepl 2012-10-17 03:30:17 EDT

commit a4a0eb23f1fd61b94d56d3bf8622bb73f81422ec
Author: Miroslav Grepl <mgrepl@redhat.com>
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 08:35:28 EDT
selinux-policy-3.10.0-156.fc17 has been submitted as an update for Fedora 17.
Comment 6 Fedora Update System 2012-10-17 20:26:54 EDT
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:
then log in and leave karma (feedback).
Comment 7 Fedora Update System 2012-12-20 10:54:52 EST
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.

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